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

chore: mitigate possible future sqlite driver problems #4200

Merged
merged 5 commits into from
Oct 9, 2023

Conversation

PierreSchwang
Copy link
Member

Overview

Just to be on the safer side, if https://github.com/xerial/sqlite-jdbc/releases/tag/3.43.0.0 is embedded again into Spigot / CB / Paper.
Checks if Statement#getGeneratedKeys is supported by the driver otherwise falls back on sqlite drivers using the RETURN statement on inserts. When using MySQL and getGeneratedKeys is not supported, well - that's a whole other story (but that's a very unlikely event).

Tested using latest paper and paper build 207 with mysql and sqlite.

Submitter Checklist

Preview Give feedback

@PierreSchwang PierreSchwang requested a review from a team as a code owner October 6, 2023 10:58
@NotMyFault NotMyFault requested a review from a team October 7, 2023 18:14
@NotMyFault NotMyFault merged commit dc13783 into main Oct 9, 2023
@NotMyFault NotMyFault deleted the chore/sqlite3.43-mitigate branch October 9, 2023 14:55
SirYwell pushed a commit that referenced this pull request Nov 16, 2023
* chore: mitigate possible future sqlite driver problems

* chore/feat: log driver version on error

---------

Co-authored-by: Alexander Brandes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants