Skip to content

Commit 66a0607

Browse files
committed
int type for price indexer
1 parent f55f411 commit 66a0607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogInventory/Model/Indexer/ProductPriceIndexFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function modifyPrice(IndexTableStructure $priceTable, array $entityIds =
105105
}
106106

107107
if (!empty($entityIds)) {
108-
$select->where('stock_item.product_id in (?)', $entityIds, \Zend_Db::INT_TYPE);
108+
$select->where('stock_item.product_id IN (?)', $entityIds, \Zend_Db::INT_TYPE);
109109
}
110110

111111
$select->group('stock_item.product_id');
@@ -121,7 +121,7 @@ public function modifyPrice(IndexTableStructure $priceTable, array $entityIds =
121121
foreach ($batchSelectIterator as $select) {
122122
$productIds = null;
123123
foreach ($connection->query($select)->fetchAll() as $row) {
124-
$productIds[] = $row['product_id'];
124+
$productIds[] = (int) $row['product_id'];
125125
}
126126
if ($productIds !== null) {
127127
$where = [$priceTable->getEntityField() .' IN (?)' => $productIds];

0 commit comments

Comments
 (0)