Skip to content

Commit c5842a5

Browse files
author
Anael Ollier
committed
Quote values in IN() predicate to avoid cast issues
1 parent 84d382b commit c5842a5

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ public function saveProductEntity(array $entityRowsIn, array $entityRowsUp)
13341334
array_merge($this->getNewSkuFieldsForSelect(), $this->getOldSkuFieldsForSelect())
13351335
)->where(
13361336
'sku IN (?)',
1337-
array_keys($entityRowsIn)
1337+
$this->_connection->quote(array_keys($entityRowsIn))
13381338
);
13391339
$newProducts = $this->_connection->fetchAll($select);
13401340
foreach ($newProducts as $data) {

0 commit comments

Comments
 (0)