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 specific error for exceptions raised by create_scalar_function #3

Open
pydanny opened this issue Dec 10, 2024 · 0 comments
Open

Comments

@pydanny
Copy link
Contributor

pydanny commented Dec 10, 2024

Typically APSW has more precise errors than Sqlite3, this is one of the exceptions.

When using create_scalar_function in deterministic mode, it is possible to throw an exception based on Sqlite constraints. In sqlite3 this raises a sqlite.NotSupportedError, but there is nothing specific in APSW. In fact, we're not sure what error is raised, so we lump it under apsw.Error. Some better things we can do:

  1. Figure the specific error and capture/raise that as necessary
  2. If there is no specific error, open a ticket, submit a PR to the upstream APSW library

Note

This is documented as a comment in the register_function code within this library

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