Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: support for large update counts (JDBC 4.2) #935
PostgreSQL do support sending large counts for statements, and Java 8 have new methods that are not implemented in the driver.
This is an implementation for large counts and implement some methods like:
Most methods are copies of the non-Large versions, so they should behave equals with just the difference of returning long instead int.
@@ Coverage Diff @@ ## master #935 +/- ## ============================================ + Coverage 68.67% 68.68% +<.01% - Complexity 3891 3902 +11 ============================================ Files 179 179 Lines 16391 16415 +24 Branches 2669 2673 +4 ============================================ + Hits 11256 11274 +18 - Misses 3887 3891 +4 - Partials 1248 1250 +2
Yes, is a new feature, in fact is a feature that must be implemented for JDBC 4.2.
In this case, it's hard that this break any existing APIs and for new features, it make sense to put in a minor release in a backwards-compatible manner, since this is not a patch or bug-fix.
Added support for large update counts of the JDBC 4.2 API (Java 8+) This implementation supports: PreparedStatement.executeLargeUpdate() Statement.executeLargeUpdate(String sql) Statement.getLargeUpdateCount() Statement.executeLargeBatch() Statement.executeLargeUpdate(String sql, int autoGeneratedKeys) * Statement.executeLargeUpdate(String sql, int columnIndexes) * Statement.executeLargeUpdate(String sql, String columnNames) *