Skip to content
New issue

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

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

Already on GitHub? # to your account

Version 3.43.0.0 fails on statement.getGeneratedKeys() #965

Closed
sproket opened this issue Sep 4, 2023 · 1 comment
Closed

Version 3.43.0.0 fails on statement.getGeneratedKeys() #965

sproket opened this issue Sep 4, 2023 · 1 comment
Labels

Comments

@sproket
Copy link

sproket commented Sep 4, 2023

Describe the bug
Running some code to insert and return a generated key with sqlite jdbc version 3.36.0.2 works fine. Once I update to version 3.43.0.0 I get the following exception:

net.sf.persism.PersismException: not implemented by SQLite JDBC driver

Caused by: java.sql.SQLFeatureNotSupportedException: not implemented by SQLite JDBC driver
at org.sqlite.jdbc3.JDBC3PreparedStatement.unsupported(JDBC3PreparedStatement.java:448)
at org.sqlite.jdbc3.JDBC3Statement.getGeneratedKeys(JDBC3Statement.java:357)
at sproket.github.io.persism/net.sf.persism.Session.insert(Session.java:681)

When I'm calling:

rs = st.getGeneratedKeys();

To Reproduce
To reproduce perform and insert and try to get the new autoinc from the statement object.

Expected behavior
It should insert and return the auto-inc value.

Logs
see above

Environment (please complete the following information):

  • OS: Windows 11
  • CPU architecture: ?
  • sqlite-jdbc version 3.43.0.0
  • Java version openjdk 17,0.4.1
@sproket sproket added the triage label Sep 4, 2023
@gotson
Copy link
Collaborator

gotson commented Sep 4, 2023

Duplicate of #963 (which is pinned at the top)

@gotson gotson closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
Repository owner deleted a comment from prrvchr Feb 9, 2024
Repository owner locked as resolved and limited conversation to collaborators Feb 9, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants