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

db.d: finalize after query to output extended result codes #11

Merged

Conversation

slook
Copy link
Contributor

@slook slook commented Aug 19, 2024

  • Changed: Use the new sqlite3_prepare_v2() routine since using legacy sqlite3_prepare() is discouraged nowadays
  • Removed: sqlite3_reset() is no longer required, since sqlite3_step() procedure resets implicitly if prepared with v2
  • Added: sqlite3_finalize() with v2 provides 74 Extended Result Codes in addition to 31 Primary Result Codes
  • Fixed: Finalize immediately after each transaction to help prevent resource leaks
  • Changed: Throw the short text string description of the final result code instead of duplicating the query string

@mathiascode mathiascode merged commit 5a9cbf4 into soulfind-dev:master Aug 19, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants