File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
app/code/Magento/Catalog/Model/Indexer/Product/Flat Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,12 @@ protected function _updateTemporaryTableByStoreValues(
341
341
if (!empty ($ changedIds )) {
342
342
$ select ->where ($ this ->_connection ->quoteInto ('et.entity_id IN (?) ' , $ changedIds ));
343
343
}
344
+
345
+ /*
346
+ * According to \Magento\Framework\DB\SelectRendererInterface select rendering may be updated
347
+ * so we need to trigger select renderer for correct update
348
+ */
349
+ $ select ->assemble ();
344
350
$ sql = $ select ->crossUpdateFromSelect (['et ' => $ temporaryFlatTableName ]);
345
351
$ this ->_connection ->query ($ sql );
346
352
}
@@ -355,6 +361,7 @@ protected function _updateTemporaryTableByStoreValues(
355
361
if (!empty ($ changedIds )) {
356
362
$ select ->where ($ this ->_connection ->quoteInto ('et.entity_id IN (?) ' , $ changedIds ));
357
363
}
364
+ $ select ->assemble ();
358
365
$ sql = $ select ->crossUpdateFromSelect (['et ' => $ temporaryFlatTableName ]);
359
366
$ this ->_connection ->query ($ sql );
360
367
}
You can’t perform that action at this time.
0 commit comments