[
https://issues.apache.org/jira/browse/DERBY-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-6000:
---------------------------------
Attachment: derby-6000-01-aa-executeLargeUpdateEmbedded.diff
Attaching derby-6000-01-aa-executeLargeUpdateEmbedded.diff. This patch adds the
new Statement.executeLargeUpdate() methods introduced by JDBC 4.2. I am running
tests now.
This patch adds the following new methods to Derby's embedded JDBC 3.0
implementation of java.sql.Statement:
public long executeLargeUpdate( String sql ) throws SQLException;
public long executeLargeUpdate( String sql, int autoGeneratedKeys) throws
SQLException;
public long executeLargeUpdate( String sql, int[] columnIndexes ) throws
SQLException;
public long executeLargeUpdate( String sql, String[] columnNames ) throws
SQLException;
This involved three changes:
1) Changing the type of the update counter from int to long.
2) Adding the new methods.
3) Forwarding the executeUpdate() overloads to the corresponding newly added
executeLargeUpdate() overloads.
I have put off adding regression tests until I have added parallel methods to
the client JDBC implementation.
Touches the following files:
-----------------------
M java/engine/org/apache/derby/iapi/sql/ResultSet.java
M
java/engine/org/apache/derby/impl/sql/execute/TemporaryRowHolderResultSet.java
M java/engine/org/apache/derby/impl/sql/execute/InsertResultSet.java
M
java/engine/org/apache/derby/impl/sql/execute/BasicNoPutResultSetImpl.java
M
java/engine/org/apache/derby/impl/sql/execute/RealResultSetStatisticsFactory.java
M java/engine/org/apache/derby/impl/sql/execute/DMLWriteResultSet.java
M java/engine/org/apache/derby/impl/sql/execute/DeleteResultSet.java
M java/engine/org/apache/derby/impl/sql/execute/NoRowsResultSetImpl.java
M java/engine/org/apache/derby/impl/sql/execute/UpdateResultSet.java
Step (1).
-----------------------
M java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java
M java/engine/org/apache/derby/impl/jdbc/EmbedPreparedStatement.java
M java/engine/org/apache/derby/iapi/jdbc/BrokeredStatement.java
M java/engine/org/apache/derby/iapi/jdbc/EngineStatement.java
Steps (2) and (3).
> Implement support for JDBC 4.2
> ------------------------------
>
> Key: DERBY-6000
> URL: https://issues.apache.org/jira/browse/DERBY-6000
> Project: Derby
> Issue Type: Improvement
> Components: JDBC
> Reporter: Rick Hillegas
> Attachments: derby-6000-01-aa-executeLargeUpdateEmbedded.diff,
> JDBC_4.2_Changes.html
>
>
> Open JDK 8 will include maintenance rev 4.2 of JDBC. The public discussion of
> JDBC 4.2 will take place here: http://openjdk.java.net/jeps/170. We will want
> to build Derby support for JDBC 4.2 after a public spec appears. At this
> time, it is unclear what Derby release will carry this support.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira