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

Use -64 versions of some interfaces #387

Closed
rogerbinns opened this issue Dec 14, 2022 · 0 comments
Closed

Use -64 versions of some interfaces #387

rogerbinns opened this issue Dec 14, 2022 · 0 comments

Comments

@rogerbinns
Copy link
Owner

rogerbinns commented Dec 14, 2022

Since some bits of apsw were written, SQLite has added -64 suffixed versions of some functions. These involved blobs and strings etc. SQLite still remains limited to 2GB for those. APSW used SQLite APIs of the time which used 32 bit sizes, so APSW did the work of making sure the values did not exceed 2GB. Switching to the -64 versions means code can be deleted from APSW and lets SQLite do the size checking work.

  • sqlite3_bind_blob64
  • sqlite3_bind_text64
  • sqlite3_bind_zeroblob64
  • sqlite3_result_blob64
  • sqlite3_result_text64
  • sqlite3_result_zeroblob64
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