Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle11g: executeBatch has exception #30

Closed
liwei6797 opened this issue Nov 19, 2013 · 2 comments
Closed

Oracle11g: executeBatch has exception #30

liwei6797 opened this issue Nov 19, 2013 · 2 comments

Comments

@liwei6797
Copy link

It's all right when used mysql. But throws exceptions when uses oracle 11.2.0.1. The driver is ojdbc6.jar. It's normal when I used PreparedStatement.

Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at oracle.jdbc.driver.T4CRowidAccessor.unmarshalOneRow(T4CRowidAccessor.java:205)
at oracle.jdbc.driver.T4C8Oall.readRXD(T4C8Oall.java:648)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:328)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1008)
at oracle.jdbc.driver.OraclePreparedStatement.executeForRowsWithTimeout(OraclePreparedStatement.java:9870)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9974)
at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:213)
at org.sql2o.tools.NamedParameterStatement.executeBatch(NamedParameterStatement.java:340)
at org.sql2o.Query.executeBatch(Query.java:411)
... 6 more

@liwei6797
Copy link
Author

Oracle doesn't support Statement.RETURN_GENERATED_KEYS

@Donaldhan
Copy link

@liwei6797 ,how to solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants