Skip to content

Commit 88f10c5

Browse files
committed
Improve performance of "in" condition on some version of MySQL
Fix static test, SVC failures and apply requested changes
1 parent 12d3ebf commit 88f10c5

File tree

42 files changed

+91
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+91
-86
lines changed

app/code/Magento/Bundle/Model/ResourceModel/Selection/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function joinPrices($websiteId)
215215
public function setOptionIdsFilter($optionIds)
216216
{
217217
if (!empty($optionIds)) {
218-
$this->getSelect()->where('selection.option_id IN (?)', $optionIds, \Zend_Db::BIGINT_TYPE);
218+
$this->getSelect()->where('selection.option_id IN (?)', $optionIds, \Zend_Db::INT_TYPE);
219219
}
220220
return $this;
221221
}
@@ -229,7 +229,7 @@ public function setOptionIdsFilter($optionIds)
229229
public function setSelectionIdsFilter($selectionIds)
230230
{
231231
if (!empty($selectionIds)) {
232-
$this->getSelect()->where('selection.selection_id IN (?)', $selectionIds, \Zend_Db::BIGINT_TYPE);
232+
$this->getSelect()->where('selection.selection_id IN (?)', $selectionIds, \Zend_Db::INT_TYPE);
233233
}
234234
return $this;
235235
}

app/code/Magento/BundleGraphQl/Model/Resolver/Links/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function fetch() : array
108108
}
109109

110110
$linkCollection->getSelect()
111-
->where($field . ' IN (?)', $this->parentIds, \Zend_Db::BIGINT_TYPE);
111+
->where($field . ' IN (?)', $this->parentIds, \Zend_Db::INT_TYPE);
112112

113113
/** @var Selection $link */
114114
foreach ($linkCollection as $link) {

app/code/Magento/Catalog/Model/Indexer/Category/Flat/AbstractAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private function getLinkIds(array $entityIds)
425425
)->where(
426426
'e.entity_id IN (?)',
427427
$entityIds,
428-
\Zend_Db::BIGINT_TYPE
428+
\Zend_Db::INT_TYPE
429429
);
430430

431431
return $this->connection->fetchCol($select);
@@ -471,11 +471,11 @@ protected function getAttributeTypeValues($type, $entityIds, $storeId)
471471
)->where(
472472
"e.entity_id IN (?)",
473473
$entityIds,
474-
\Zend_Db::BIGINT_TYPE
474+
\Zend_Db::INT_TYPE
475475
)->where(
476476
'def.store_id IN (?)',
477477
[Store::DEFAULT_STORE_ID, $storeId],
478-
\Zend_Db::BIGINT_TYPE
478+
\Zend_Db::INT_TYPE
479479
);
480480

481481
return $this->connection->fetchAll($select);

app/code/Magento/Catalog/Model/Indexer/Category/Flat/Action/Rows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function filterIdsByStore(array $ids, $store)
120120
)->where(
121121
"entity_id IN (?)",
122122
$ids,
123-
\Zend_Db::BIGINT_TYPE
123+
\Zend_Db::INT_TYPE
124124
);
125125

126126
$resultIds = [];

app/code/Magento/Catalog/Model/Indexer/Category/Product/AbstractAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ protected function createAnchorSelect(Store $store)
508508
$this->connection->quoteInto(
509509
'cc2.parent_id = cc.entity_id AND cc.entity_id NOT IN (?)',
510510
$rootCatIds,
511-
\Zend_Db::BIGINT_TYPE
511+
\Zend_Db::INT_TYPE
512512
),
513513
[]
514514
)->joinInner(

app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private function reindexCategoriesBySelect(Select $basicSelect, $whereCondition,
282282
$this->connection->delete($this->tableMaintainer->getMainTmpTable((int)$store->getId()));
283283
$entityIds = $this->connection->fetchCol($query);
284284
$resultSelect = clone $basicSelect;
285-
$resultSelect->where($whereCondition, $entityIds, \Zend_Db::BIGINT_TYPE);
285+
$resultSelect->where($whereCondition, $entityIds, \Zend_Db::INT_TYPE);
286286
$this->connection->query(
287287
$this->connection->insertFromSelect(
288288
$resultSelect,

app/code/Magento/Catalog/Model/Indexer/Product/Category/Action/Rows.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function getProductIdsWithParents(array $childProductIds): array
151151
->select()
152152
->from(['relation' => $this->getTable('catalog_product_relation')], [])
153153
->distinct(true)
154-
->where('child_id IN (?)', $childProductIds, \Zend_Db::BIGINT_TYPE)
154+
->where('child_id IN (?)', $childProductIds, \Zend_Db::INT_TYPE)
155155
->join(
156156
['cpe' => $this->getTable('catalog_product_entity')],
157157
'relation.parent_id = cpe.' . $fieldForParent,
@@ -215,7 +215,7 @@ protected function removeEntries()
215215
protected function getNonAnchorCategoriesSelect(\Magento\Store\Model\Store $store)
216216
{
217217
$select = parent::getNonAnchorCategoriesSelect($store);
218-
return $select->where('ccp.product_id IN (?)', $this->limitationByProducts, \Zend_Db::BIGINT_TYPE);
218+
return $select->where('ccp.product_id IN (?)', $this->limitationByProducts, \Zend_Db::INT_TYPE);
219219
}
220220

221221
/**
@@ -227,7 +227,7 @@ protected function getNonAnchorCategoriesSelect(\Magento\Store\Model\Store $stor
227227
protected function getAnchorCategoriesSelect(\Magento\Store\Model\Store $store)
228228
{
229229
$select = parent::getAnchorCategoriesSelect($store);
230-
return $select->where('ccp.product_id IN (?)', $this->limitationByProducts, \Zend_Db::BIGINT_TYPE);
230+
return $select->where('ccp.product_id IN (?)', $this->limitationByProducts, \Zend_Db::INT_TYPE);
231231
}
232232

233233
/**
@@ -239,7 +239,7 @@ protected function getAnchorCategoriesSelect(\Magento\Store\Model\Store $store)
239239
protected function getAllProducts(\Magento\Store\Model\Store $store)
240240
{
241241
$select = parent::getAllProducts($store);
242-
return $select->where('cp.entity_id IN (?)', $this->limitationByProducts, \Zend_Db::BIGINT_TYPE);
242+
return $select->where('cp.entity_id IN (?)', $this->limitationByProducts, \Zend_Db::INT_TYPE);
243243
}
244244

245245
/**
@@ -265,7 +265,7 @@ private function getCategoryIdsFromIndex(array $productIds): array
265265
$storeCategories = $this->connection->fetchCol(
266266
$this->connection->select()
267267
->from($this->getIndexTable($store->getId()), ['category_id'])
268-
->where('product_id IN (?)', $productIds, \Zend_Db::BIGINT_TYPE)
268+
->where('product_id IN (?)', $productIds, \Zend_Db::INT_TYPE)
269269
->distinct()
270270
);
271271
$categoryIds[] = $storeCategories;

app/code/Magento/Catalog/Model/Indexer/Product/Flat/FlatTableBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ protected function _updateTemporaryTableByStoreValues(
354354
);
355355
if (!empty($changedIds)) {
356356
$select->where(
357-
$this->_connection->quoteInto('et.entity_id IN (?)', $changedIds, \Zend_Db::BIGINT_TYPE)
357+
$this->_connection->quoteInto('et.entity_id IN (?)', $changedIds, \Zend_Db::INT_TYPE)
358358
);
359359
}
360360
$sql = $select->crossUpdateFromSelect(['et' => $temporaryFlatTableName]);
@@ -382,7 +382,7 @@ protected function _updateTemporaryTableByStoreValues(
382382
$this->_connection->quoteInto(
383383
'et.entity_id IN (?)',
384384
$changedIds,
385-
\Zend_Db::BIGINT_TYPE
385+
\Zend_Db::INT_TYPE
386386
)
387387
);
388388
}

app/code/Magento/Catalog/Model/Indexer/Product/Flat/TableBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ protected function _fillTemporaryTable(
348348

349349
if (!empty($changedIds)) {
350350
$select->where(
351-
$this->_connection->quoteInto('e.entity_id IN (?)', $changedIds, \Zend_Db::BIGINT_TYPE)
351+
$this->_connection->quoteInto('e.entity_id IN (?)', $changedIds, \Zend_Db::INT_TYPE)
352352
);
353353
}
354354

@@ -358,7 +358,7 @@ protected function _fillTemporaryTable(
358358
if (count($valueColumns) > 1) {
359359
if (!empty($changedIds)) {
360360
$selectValue->where(
361-
$this->_connection->quoteInto('e.entity_id IN (?)', $changedIds, \Zend_Db::BIGINT_TYPE)
361+
$this->_connection->quoteInto('e.entity_id IN (?)', $changedIds, \Zend_Db::INT_TYPE)
362362
);
363363
}
364364
$sql = $selectValue->insertFromSelect($temporaryValueTableName, $valueColumns, true);

app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ private function deleteIndexData(array $entityIds)
436436
$select = $this->getConnection()->select()->from(
437437
['index_price' => $this->tableMaintainer->getMainTableByDimensions($dimensions)],
438438
null
439-
)->where('index_price.entity_id IN (?)', $entityIds, \Zend_Db::BIGINT_TYPE);
439+
)->where('index_price.entity_id IN (?)', $entityIds, \Zend_Db::INT_TYPE);
440440
$query = $select->deleteFromSelect('index_price');
441441
$this->getConnection()->query($query);
442442
}
@@ -547,7 +547,7 @@ private function getProductsTypes(array $changedIds = [])
547547
['entity_id', 'type_id']
548548
);
549549
if ($changedIds) {
550-
$select->where('entity_id IN (?)', $changedIds, \Zend_Db::BIGINT_TYPE);
550+
$select->where('entity_id IN (?)', $changedIds, \Zend_Db::INT_TYPE);
551551
}
552552
$pairs = $this->getConnection()->fetchPairs($select);
553553

app/code/Magento/Catalog/Model/Product/Attribute/AttributeSetFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function findAttributeSetIdsByProductIds(array $productIds)
3737
->getSelect()
3838
->reset(Select::COLUMNS)
3939
->columns(ProductInterface::ATTRIBUTE_SET_ID)
40-
->where('entity_id IN (?)', $productIds, \Zend_Db::BIGINT_TYPE)
40+
->where('entity_id IN (?)', $productIds, \Zend_Db::INT_TYPE)
4141
->group(ProductInterface::ATTRIBUTE_SET_ID);
4242
$result = $collection->getConnection()->fetchCol($select);
4343
return $result;

app/code/Magento/Catalog/Model/Product/Price/PricePersistence.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function get(array $skus)
105105
->select()
106106
->from($this->attributeResource->getTable($this->table));
107107
return $this->attributeResource->getConnection()->fetchAll(
108-
$select->where($this->getEntityLinkField() . ' IN (?)', $ids, \Zend_Db::BIGINT_TYPE)
108+
$select->where($this->getEntityLinkField() . ' IN (?)', $ids, \Zend_Db::INT_TYPE)
109109
->where('attribute_id = ?', $this->getAttributeId())
110110
);
111111
}
@@ -214,13 +214,13 @@ private function getAttributeId()
214214
*/
215215
private function retrieveAffectedIds(array $skus)
216216
{
217-
$affectedIds = [[]];
217+
$affectedIds = [];
218218

219219
foreach ($this->productIdLocator->retrieveProductIdsBySkus($skus) as $productIds) {
220220
$affectedIds[] = array_keys($productIds);
221221
}
222222

223-
return array_unique(array_merge(...$affectedIds));
223+
return array_unique(array_merge([], ...$affectedIds));
224224
}
225225

226226
/**

app/code/Magento/Catalog/Model/Product/Price/TierPricePersistence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function get(array $ids)
5656
{
5757
$select = $this->tierpriceResource->getConnection()->select()->from($this->tierpriceResource->getMainTable());
5858
return $this->tierpriceResource->getConnection()->fetchAll(
59-
$select->where($this->getEntityLinkField() . ' IN (?)', $ids, \Zend_Db::BIGINT_TYPE)
59+
$select->where($this->getEntityLinkField() . ' IN (?)', $ids, \Zend_Db::INT_TYPE)
6060
);
6161
}
6262

app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected function _getLoadAttributesSelect($object, $table)
147147
->select()
148148
->from(['attr_table' => $table], [])
149149
->where("attr_table.{$this->getLinkField()} = ?", $object->getData($this->getLinkField()))
150-
->where('attr_table.store_id IN (?)', $storeIds, \Zend_Db::BIGINT_TYPE);
150+
->where('attr_table.store_id IN (?)', $storeIds, \Zend_Db::INT_TYPE);
151151

152152
if ($setId) {
153153
$select->join(
@@ -565,7 +565,7 @@ public function getAttributeRawValue($entityId, $attribute, $store)
565565
$connection->quoteInto(
566566
'default_value.attribute_id IN (?)',
567567
array_keys($_attributes),
568-
\Zend_Db::BIGINT_TYPE
568+
\Zend_Db::INT_TYPE
569569
),
570570
"default_value.{$this->getLinkField()} = e.{$this->getLinkField()}",
571571
'default_value.store_id = 0',
@@ -596,7 +596,7 @@ public function getAttributeRawValue($entityId, $attribute, $store)
596596
$connection->quoteInto(
597597
'store_value.attribute_id IN (?)',
598598
array_keys($_attributes),
599-
\Zend_Db::BIGINT_TYPE
599+
\Zend_Db::INT_TYPE
600600
),
601601
"store_value.{$this->getLinkField()} = e.{$this->getLinkField()}",
602602
'store_value.store_id = :store_id',

app/code/Magento/Catalog/Model/ResourceModel/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ public function findWhereAttributeIs($entityIdsFilter, $attribute, $expectedValu
667667
)->where(
668668
'ce.entity_id IN (?)',
669669
$entityIdsFilter,
670-
\Zend_Db::BIGINT_TYPE
670+
\Zend_Db::INT_TYPE
671671
);
672672
$this->entitiesWhereAttributesIs[$entityIdsFilterHash][$attribute->getId()][$expectedValue] =
673673
$this->getConnection()->fetchCol($selectEntities, $bind);

app/code/Magento/Catalog/Model/ResourceModel/Category/Flat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ protected function _loadNodes($parentNode = null, $recursionLevel = 0, $storeId
294294
$inactiveCategories = $this->getInactiveCategoryIds();
295295

296296
if (!empty($inactiveCategories)) {
297-
$select->where('main_table.entity_id NOT IN (?)', $inactiveCategories, \Zend_Db::BIGINT_TYPE);
297+
$select->where('main_table.entity_id NOT IN (?)', $inactiveCategories, \Zend_Db::INT_TYPE);
298298
}
299299

300300
// Allow extensions to modify select (e.g. add custom category attributes to select)
@@ -682,7 +682,7 @@ public function getAnchorsAbove(array $filterIds, $storeId = 0)
682682
)->where(
683683
'entity_id IN (?)',
684684
$filterIds,
685-
\Zend_Db::BIGINT_TYPE
685+
\Zend_Db::INT_TYPE
686686
);
687687

688688
return $this->getConnection()->fetchCol($select);

app/code/Magento/Catalog/Model/ResourceModel/Collection/AbstractCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ protected function _getLoadAttributesSelect($table, $attributeIds = [])
171171
)->where(
172172
"e.entity_id IN (?)",
173173
array_keys($this->_itemsById),
174-
\Zend_Db::BIGINT_TYPE
174+
\Zend_Db::INT_TYPE
175175
)->where(
176176
't_d.attribute_id IN (?)',
177177
$attributeIds,
178-
\Zend_Db::BIGINT_TYPE
178+
\Zend_Db::INT_TYPE
179179
)->joinLeft(
180180
['t_s' => $table],
181181
implode(' AND ', $joinCondition),
@@ -195,11 +195,11 @@ protected function _getLoadAttributesSelect($table, $attributeIds = [])
195195
)->where(
196196
"e.entity_id IN (?)",
197197
array_keys($this->_itemsById),
198-
\Zend_Db::BIGINT_TYPE
198+
\Zend_Db::INT_TYPE
199199
)->where(
200200
'attribute_id IN (?)',
201201
$attributeIds,
202-
\Zend_Db::BIGINT_TYPE
202+
\Zend_Db::INT_TYPE
203203
)->where(
204204
'store_id = ?',
205205
$this->getDefaultStoreId()

app/code/Magento/Catalog/Model/ResourceModel/Product.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function getWebsiteIdsByProductIds($productIds)
236236
)->where(
237237
'product_id IN (?)',
238238
$productIds,
239-
\Zend_Db::BIGINT_TYPE
239+
\Zend_Db::INT_TYPE
240240
);
241241
$productsWebsites = [];
242242
foreach ($this->getConnection()->fetchAll($select) as $productInfo) {
@@ -361,7 +361,7 @@ private function deleteSelectedEntityAttributeRows(DataObject $product, array $a
361361
$entityId = $product->getData($entityIdField);
362362
foreach ($backendTables as $backendTable => $attributes) {
363363
$connection = $this->getConnection();
364-
$where = $connection->quoteInto('attribute_id IN (?)', $attributes, \Zend_Db::BIGINT_TYPE);
364+
$where = $connection->quoteInto('attribute_id IN (?)', $attributes, \Zend_Db::INT_TYPE);
365365
$where .= $connection->quoteInto(" AND {$entityIdField} = ?", $entityId);
366366
$connection->delete($backendTable, $where);
367367
}
@@ -454,6 +454,7 @@ public function getAvailableInCategories($object)
454454
// fetching all parent IDs, including those are higher on the tree
455455
$entityId = (int)$object->getEntityId();
456456
if (!isset($this->availableCategoryIdsCache[$entityId])) {
457+
$unionTables = [];
457458
foreach ($this->_storeManager->getStores() as $store) {
458459
$unionTables[] = $this->getAvailableInCategoriesSelect(
459460
$entityId,
@@ -599,7 +600,7 @@ public function getProductsSku(array $productIds)
599600
)->where(
600601
'entity_id IN (?)',
601602
$productIds,
602-
\Zend_Db::BIGINT_TYPE
603+
\Zend_Db::INT_TYPE
603604
);
604605
return $this->getConnection()->fetchAll($select);
605606
}

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ protected function doAddWebsiteNamesToResult()
859859
)->where(
860860
'product_website.product_id IN (?)',
861861
array_keys($productWebsites),
862-
\Zend_Db::BIGINT_TYPE
862+
\Zend_Db::INT_TYPE
863863
)->where(
864864
'website.website_id > ?',
865865
0
@@ -1359,15 +1359,15 @@ public function addCountToCategories($categoryCollection)
13591359
$anchorStmt = clone $select;
13601360
$anchorStmt->limit();
13611361
//reset limits
1362-
$anchorStmt->where('count_table.category_id IN (?)', $isAnchor, \Zend_Db::BIGINT_TYPE);
1362+
$anchorStmt->where('count_table.category_id IN (?)', $isAnchor, \Zend_Db::INT_TYPE);
13631363
$productCounts += $this->getConnection()->fetchPairs($anchorStmt);
13641364
$anchorStmt = null;
13651365
}
13661366
if ($isNotAnchor) {
13671367
$notAnchorStmt = clone $select;
13681368
$notAnchorStmt->limit();
13691369
//reset limits
1370-
$notAnchorStmt->where('count_table.category_id IN (?)', $isNotAnchor, \Zend_Db::BIGINT_TYPE);
1370+
$notAnchorStmt->where('count_table.category_id IN (?)', $isNotAnchor, \Zend_Db::INT_TYPE);
13711371
$notAnchorStmt->where('count_table.is_parent = 1');
13721372
$productCounts += $this->getConnection()->fetchPairs($notAnchorStmt);
13731373
$notAnchorStmt = null;
@@ -2166,7 +2166,7 @@ public function addCategoryIds()
21662166
$select = $this->getConnection()->select();
21672167

21682168
$select->from($this->_productCategoryTable, ['product_id', 'category_id']);
2169-
$select->where('product_id IN (?)', $ids, \Zend_Db::BIGINT_TYPE);
2169+
$select->where('product_id IN (?)', $ids, \Zend_Db::INT_TYPE);
21702170

21712171
$data = $this->getConnection()->fetchAll($select);
21722172

app/code/Magento/Catalog/Model/ResourceModel/Product/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public function getProductImages($product, $storeIds)
488488
)->where(
489489
'store_id IN (?)',
490490
$storeIds,
491-
\Zend_Db::BIGINT_TYPE
491+
\Zend_Db::INT_TYPE
492492
)->where(
493493
'attribute_code IN (?)',
494494
['small_image', 'thumbnail', 'image']

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/DefaultPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ protected function _movePriceDataToIndexTable($entityIds = null)
775775
$select = $connection->select()->from($table, $columns);
776776

777777
if ($entityIds !== null) {
778-
$select->where('entity_id in (?)', count($entityIds) > 0 ? $entityIds : 0, \Zend_Db::BIGINT_TYPE);
778+
$select->where('entity_id in (?)', count($entityIds) > 0 ? $entityIds : 0, \Zend_Db::INT_TYPE);
779779
}
780780

781781
$query = $select->insertFromSelect($this->getIdxTable(), [], false);

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/TierPrice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private function getTierPriceSelect(bool $isAllWebsites, bool $isAllCustomerGrou
193193
[]
194194
);
195195
if (!empty($entityIds)) {
196-
$select->where('entity.entity_id IN (?)', $entityIds, \Zend_Db::BIGINT_TYPE);
196+
$select->where('entity.entity_id IN (?)', $entityIds, \Zend_Db::INT_TYPE);
197197
}
198198
$this->joinWebsites($select, $isAllWebsites);
199199
$this->joinCustomerGroups($select, $isAllCustomerGroups);

0 commit comments

Comments
 (0)