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

work around https://bugs.python.org/issue41638 #7

Closed
WolfgangFahl opened this issue Aug 26, 2020 · 0 comments
Closed

work around https://bugs.python.org/issue41638 #7

WolfgangFahl opened this issue Aug 26, 2020 · 0 comments

Comments

@WolfgangFahl
Copy link
Owner

When a column-value is missing in one of the records in list of records the error message of the python library is:

sqlite3.ProgrammingError: You did not supply a value for binding 2
This is not helpful - improve the error message as asked for in https://bugs.python.org/issue41638 - workaround the problem as long as it is not fixed upstream.

Step 2:
improve with a message like:
INSERT INTO Pokemon (name,type) values (:name,:type)
failed: no value supplied for column 'type'

Step 2:
improve with a message like:
INSERT INTO Pokemon (name,type) values (:name,:type)
failed: for record #2 name='Raichu': no value supplied for column 'type'

WolfgangFahl added a commit that referenced this issue Aug 26, 2020
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