Skip to content

Commit d0bb11d

Browse files
authored
MAGETWO-65360: [GitHub][PR] Quote values in IN() predicate to avoid cast issues #8714
2 parents a902c99 + c650686 commit d0bb11d

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,7 @@ public function saveProductEntity(array $entityRowsIn, array $entityRowsUp)
13331333
$entityTable,
13341334
array_merge($this->getNewSkuFieldsForSelect(), $this->getOldSkuFieldsForSelect())
13351335
)->where(
1336-
'sku IN (?)',
1337-
array_keys($entityRowsIn)
1336+
$this->_connection->quoteInto('sku IN (?)', array_keys($entityRowsIn))
13381337
);
13391338
$newProducts = $this->_connection->fetchAll($select);
13401339
foreach ($newProducts as $data) {

0 commit comments

Comments
 (0)