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

SQLite and generated keys #1186

Closed
gwenn opened this issue Sep 29, 2024 · 2 comments
Closed

SQLite and generated keys #1186

gwenn opened this issue Sep 29, 2024 · 2 comments
Labels
question Further information is requested

Comments

@gwenn
Copy link

gwenn commented Sep 29, 2024

Describe the bug

The following statement seems wrong to me:
https://github.com/xerial/sqlite-jdbc/blob/master/USAGE.md#generated-keys

SQLite has limited support to retrieve generated keys

Expected behavior

Because you can use the INSERT ... RETURNING ... syntax:
https://sqlite.org/lang_returning.html

The returning clause (if missing) could be generated programmatically by the JDBC driver.

@gwenn gwenn added the triage label Sep 29, 2024
@gotson
Copy link
Collaborator

gotson commented Sep 30, 2024

The returning clause (if missing) could be generated programmatically by the JDBC driver.

this is quite complex and out of scope of the driver

@gotson gotson closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
@gotson gotson added question Further information is requested and removed triage labels Sep 30, 2024
@gwenn
Copy link
Author

gwenn commented Sep 30, 2024

The returning clause (if missing) could be generated programmatically by the JDBC driver.

this is quite complex and out of scope of the driver

So this means that only the JDBC driver has limited support to retrieve generated keys and not SQLite.

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

No branches or pull requests

2 participants