summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sqlite3/test_regression.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-99886: Fix crash when freeing objects with managed dictionaries ↵Ken Jin2022-12-041-0/+12
| | | | | (#99902) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Clean up the sqlite3 tests (GH-93056)Miss Islington (bot)2022-05-211-5/+5
| | | | | | | Remove helper managed_connect(). Use memory_database() or contextlib.closing() + addCleanup(unlink) instead. (cherry picked from commit e5d8dbdd304935dbd0631ee9605efb501332f792) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#29054)Erlend Egeberg Aasland2022-05-031-0/+39
| | | | Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695)Erlend Egeberg Aasland2022-03-171-6/+9
| | | | | | | | | | | | * Improve exception compliance with PEP 249 * Raise InterfaceError instead of ProgrammingError for SQLITE_MISUSE. If SQLITE_MISUSE is raised, it is a sqlite3 module bug. Users of the sqlite3 module are not responsible for using the SQLite C API correctly. * Don't overwrite BufferError with ValueError when conversion to BLOB fails. * Raise ProgrammingError instead of Warning if user tries to execute() more than one SQL statement. * Raise ProgrammingError instead of ValueError if an SQL query contains null characters. * Make sure `_pysqlite_set_result` raises an exception if it returns -1.
* bpo-46425: use absolute imports in `test_sqlite3` (GH-30676)Nikita Sobolev2022-01-221-3/+2
|
* bpo-44092: Don't reset statements/cursors before rollback (GH-26026)Erlend Egeberg Aasland2022-01-031-22/+0
| | | In SQLite versions pre 3.7.11, pending statements would block a rollback. This is no longer the case, so remove the workaround.
* bpo-45754: Use correct SQLite limit when checking statement length (GH-29489)Erlend Egeberg Aasland2021-11-101-3/+3
|
* bpo-45243: Use connection limits to simplify `sqlite3` tests (GH-29356)Erlend Egeberg Aasland2021-11-051-12/+14
|
* bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)Erlend Egeberg Aasland2021-10-291-0/+491
Automerge-Triggered-By: GH:brettcannon