Bug #118234 | A potential bugs in Mysql Connector/J | ||
---|---|---|---|
Submitted: | 21 May 3:59 | Modified: | 21 May 7:03 |
Reporter: | 策 吕 | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 9.0.0, 9.3.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[21 May 3:59]
策 吕
[21 May 7:03]
MySQL Verification Team
Hello 策 吕, Thank you for the report and feedback. Verified as described. regards, Umesh
[16 Jul 19:19]
Axyoan Marcelo
Posted by developer: Hi 策 吕, Thank you for your report. If you look at the documentation for Statement.executeBatch it states: `Throws BatchUpdateException(a subclass of SQLException) if one of the commands sent to the database fails to execute properly or attempts to return a result set.` The batch you are trying to execute contains the query "DESC table0;" which returns a ResultSet. BatchedStatements are meant to be used for update queries, such as INSERT or UPDATE. That said, the program is failing to throw an exception and this needs to be fixed. Thank you for bringing this to our attention. Regards, Axyoan