Bug #118138 | A potential bugs in Mysql Connector/J | ||
---|---|---|---|
Submitted: | 8 May 11:54 | Modified: | 16 Jul 20:46 |
Reporter: | 策 吕 | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 9.2.0, 9.3.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 May 11:54]
策 吕
[9 May 6:43]
MySQL Verification Team
Hello 策 吕, Thank you for the report and feedback. Verified as described. regards, Umesh
[16 Jul 20:46]
Axyoan Marcelo
Hi 策 吕, The behavior you are seeing is not really a bug, I encourage you to read the following bug report and the conversation contained in it: Bug#110503, as it relates closely to your testcase. In short, however, setting rewriteBatchedStatements to true, "bundles" all batched queries into a single one before sending it to the server. Because you are trying to insert a duplicate key midway through your code, the server stops at that point and no longer continues to process the rest of the query. If you set rewriteBatchedStatements to false, all queries execute independently of one another, so even if one fails due to a duplicate key, the rest execute without issue. This report will be closed as duplicate of Bug#110503 Regards, Axyoan