Use specific error for exceptions raised by create_scalar_function
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading the comment in the register_function code and reproducing an exception from create_scalar_function in deterministic mode. Compare the exception with sqlite3.NotSupportedError and inspect how APSW errors are currently captured. Done means raising a specific APSW error where available, or documenting and escalating the missing error through the upstream APSW project.
Written by the indexing model from the issue text.
Description
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:
- Figure the specific error and capture/raise that as necessary
- 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 theregister_functioncode within this library
- Dominant language
- Python
- Stars
- 3
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AnswerDotAI/apswutils
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
AnswerDotAI/apswutils#28 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AnswerDotAI/apswutils#22 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
AnswerDotAI/apswutils#21 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
AnswerDotAI/apswutils#19 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
AnswerDotAI/apswutils#17 ·
All issues in AnswerDotAI/apswutils
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nwg-piotr/nwg-displays#145 ·