Skip to content

Commit feb2adb

Browse files
committed
AC-14567: MView mechanism silently ignores errors on trigger execution
The changes: - Removed the IGNORE keyword from the INSERT statement in the trigger - This means that any errors during trigger execution will now be properly reported - The transaction will be rolled back if there's an error, preventing data inconsistency
1 parent a04b0ef commit feb2adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Mview/View/Subscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ protected function prepareColumns(ViewInterface $view, string $event): array
297297
*/
298298
protected function buildStatement(string $event, ViewInterface $view): string
299299
{
300-
$trigger = "%sINSERT IGNORE INTO %s (%s) VALUES (%s);";
300+
$trigger = "%sINSERT INTO %s (%s) VALUES (%s);";
301301
$changelog = $view->getChangelog();
302302

303303
switch ($event) {

0 commit comments

Comments
 (0)