AnantLabs / xerial

Automatically exported from code.google.com/p/xerial
0 stars 0 forks source link

connection.prepareStatement(java.lang.String sql, int autoGeneratedKeys) NYI #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. preparedStatement = connection.prepareStatement(statementText,
PreparedStatement.RETURN_GENERATED_KEYS);
2. java.sql.SQLException: NYI
        at org.sqlite.Conn.prepareStatement(Conn.java:443)

What is the expected output? What do you see instead?
There should not be an exception "Not Yet Implemented".

What version of the product are you using? On what operating system?
sqlite-jdbc-3.6.17.1

Please provide any additional information below.
It looks like by default it is returning generated keys. I don't know what
is the real behavior, and I assume that using prepareStatement with other
constants will throw the same exception as well.

This operation is defined in
http://java.sun.com/javase/6/docs/api/java/sql/Connection.html#prepareStatement(
java.lang.String,%20int),
and I think it is new as of JDBC 3.0, although not 100% sure.

Original issue reported on code.google.com by hiv...@gmail.com on 22 Sep 2009 at 3:30

GoogleCodeExporter commented 9 years ago
I forgot to include that this is for SQLiteJDBC, not xerial-core as it states 
in the
"Milestone" field.

Original comment by hiv...@gmail.com on 22 Sep 2009 at 3:51

GoogleCodeExporter commented 9 years ago

Original comment by taroleo on 28 Sep 2009 at 8:19

GoogleCodeExporter commented 9 years ago
changed the milestone

Original comment by taroleo on 25 Nov 2009 at 11:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 48e55fb893.

Original comment by taroleo on 8 Dec 2009 at 7:51