Bug #69308 | PreparedStatement.executeBatchedInserts calls close() twice on batchedStatement | ||
---|---|---|---|
Submitted: | 23 May 2013 4:34 | Modified: | 10 Jul 2013 23:04 |
Reporter: | Jesse Barnum | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.22 | OS: | MacOS |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
[23 May 2013 4:34]
Jesse Barnum
[29 May 2013 13:45]
Filipe Silva
Hi Jesse Barnum, Thank you for this bug report. It was verified as reported.
[10 Jul 2013 23:04]
Daniel So
Added entry to the Connector/J 5.1.25 changelog: "With the connection option rewriteBatchedStatements=true, after a batch insert, the batchStatement was closed twice. This caused some unnecessary throwing and catching of errors, impacting code performance. This fix nullifies the batchStatement after the first calling of the close() method in order to avoid a second closing."