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

Cannot use insert or insertBatch with SQLite #137

Open
agg23 opened this issue Sep 9, 2023 · 0 comments
Open

Cannot use insert or insertBatch with SQLite #137

agg23 opened this issue Sep 9, 2023 · 0 comments

Comments

@agg23
Copy link

agg23 commented Sep 9, 2023

This is more documenting the issue than asking for help, but I discovered that both insert and insertBatch call PreparedStatement.getGeneratedKeys(), which is not supported by any SQLite JDBC driver. This prevents getting the new ID from the inserted row.

However, it turns out that https://github.com/xerial/sqlite-jdbc supports getGeneratedKeys(), but only on an older release (2 weeks ago from posting), 3.42.0.1.

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

1 participant