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
sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality. #65449
Comments
In Lib/sqlite3/tests/dbapi.py there are no unit tests which test out sqlite3's 'insert or [algorithm].' These algorithms are also referred to as SQL 'insert on conflict.' More details at, Not having unit tests for these features, especially 'insert or rollback,' seems like an easy way for timing and threading bugs to get lost in the database api. |
Are you interested in submitting a patch? |
Yes, I'm going to work on one after I fix bpo-16864 today. |
I've added a set of tests which test the insert or [algorithm] branch of sqlite. It took some getting used to python.sqlite3's transaction model but I think I have a much better understanding now. |
Thanks for the patch Alex. Some quick review comments:
|
New changeset 91d3022b3f03 by Berker Peksag in branch '3.5': New changeset db2bedd5c34a by Berker Peksag in branch 'default': |
Thanks for the patch, Alex! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: