rzo1 commented on PR #317: URL: https://github.com/apache/openjpa/pull/317#issuecomment-7102211880
Thanks for catching this! It's not the PR: the new test found an old bug. On MySQL/MariaDB a bulk DELETE whose WHERE clause uses a relation becomes `DELETE t0, t1 FROM BRG_LINE t0 INNER JOIN BRG_ORDER t1 ON ...`, which deletes the joined order row as well (3 rows instead of 2). `getDeleteTargets()` lists all aliases of the select; it has been like that since OPENJPA-597, so 4.2.0 is affected too. Let's not exclude the test. I'll open a Jira issue and a PR that deletes only from the target table. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
