Skip to content

[MDEV-41213] Bulk unit results include rows for DML run by triggers and stored functions - #5702

Open
rusher wants to merge 1 commit into
MariaDB:11.8from
rusher:11.8-bulk-unit-results-sub-stmt
Open

rusher wants to merge 1 commit into
MariaDB:11.8from
rusher:11.8-bulk-unit-results-sub-stmt

Conversation

@rusher

@rusher rusher commented Sep 18, 2026

Copy link
Copy Markdown
Member

THD::collect_unit_results() is reached by every INSERT/UPDATE/DELETE completion, including those executed inside triggers and stored functions on behalf of the bulk unit, so the unit result set had more rows than units and clients could not map them. Only collect when not in a sub-statement.

…nd stored functions

THD::collect_unit_results() is reached by every INSERT/UPDATE/DELETE
completion, including those executed inside triggers and stored functions
on behalf of the bulk unit, so the unit result set had more rows than units
and clients could not map them. Only collect when not in a sub-statement.
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants