1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-28 08:01:55 +03:00
Files
mariadb/sql/sql_error.h
Oleksandr Byelkin a7f0be7f77 MDEV-23864 Wrong bulk affected rows with triggers and stored functions
In bulk operation reset_diagnostics_area() set DA_OK_BULK before the
first OK, so the affected rows of the previous statement were added,
and OK of trigger and stored function statements were added too.

Remember DA_OK_BULK/DA_EOF_BULK set by the bulk operation and restore
it when the diagnostics area is reset (also after an error handled in
a trigger or stored function, or a reprepare), and do not set OK status
in sub-statements of bulk operation (my_ok(), GET DIAGNOSTICS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 21:36:55 +02:00

40 KiB