Skip to content

Commit c650686

Browse files
author
Oleksii Korshenko
committed
MAGETWO-65360: [GitHub][PR] Quote values in IN() predicate to avoid cast issues #8714
- Merge Pull Request #8714 from xi-ao/magento2:product-import-quote-values
2 parents f1dc91b + 793e0cc commit c650686

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)