Details
-
Type:
Enhancement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch:Code and Test
Description
sqlite3 has some problems:
1) PreparedStatements.addBatch does not do anything without some parameters, so executeBatch doesn't do anything.
2) Transaction support appears to require closing the ResultSet object from generatedKeys.
I've only tested the included patch with the default test dbs and sqlite3.
Attachments
Activity
Nelson Morris
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | mssql-error.log [ 10923 ] |
Sean Corfield
made changes -
| Resolution | Completed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Sean Corfield
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Completed [ 1 ] |
Nelson Morris
made changes -
| Attachment | sqlite_transaction_test.patch [ 10975 ] |
Sean Corfield
made changes -
| Resolution | Completed [ 1 ] | |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
This will break things - see
JDBC-16which required that .addBatch be called when there are no param-groups. I'm not going to reject this out of hand but patches for new database support need testing against MySQL, PostgreSQL and MS SQL Server.JDBC-16which required that .addBatch be called when there are no param-groups. I'm not going to reject this out of hand but patches for new database support need testing against MySQL, PostgreSQL and MS SQL Server.