mirror of
https://github.com/MariaDB/server.git
synced 2026-10-28 08:01:55 +03:00
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>
40 KiB
40 KiB