Skip to content

[OPENJPA-3056] Match bulk delete keys in a derived table on MariaDB before 11.1 - #252

Merged
cristof merged 1 commit into
masterfrom
OPENJPA-3056
Nov 2, 2026
Merged

cristof merged 1 commit into
masterfrom
OPENJPA-3056

Conversation

@rzo1

@rzo1 rzo1 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

MariaDB before 11.1 rejects a multi-table DELETE whose subquery reads the target table (error 1093), so MariaDBDictionary now sets AllowsBulkTargetInSubselect=false on those versions and uses the derived-table workaround from OPENJPA-3036. This fixes the TestBulkUpdateSubqueryOnTarget failures on MariaDB 10.11 in the scheduled Databases workflow.

@rzo1
rzo1 requested review from cristof and solomax November 2, 2026 10:15
…efore 11.1

MariaDB before 11.1 rejects a multi-table DELETE whose subquery reads the
target table (error 1093). Set AllowsBulkTargetInSubselect to false there,
so the keys are matched in a derived table as on MySQL (OPENJPA-3036).
@cristof
cristof merged commit 6a512bd into master Nov 2, 2026
4 checks passed
@cristof
cristof deleted the OPENJPA-3056 branch November 2, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants