cpython/Lib/test/test_sqlite3
Erlend Egeberg Aasland 090819ec5f
gh-89022: Improve sqlite3 exceptions related to binding params and API misuse (#91572)
* Map SQLITE_MISUSE to sqlite3.InterfaceError

SQLITE_MISUSE implies misuse of the SQLite C API, which, if it happens,
is _not_ a user error; it is an sqlite3 extension module error.

* Raise better errors when binding parameters fail.

Instead of always raising InterfaceError, guessing what went wrong,
raise accurate exceptions with more accurate error messages.
2022-05-04 07:16:01 -06:00
..
__init__.py
__main__.py
test_backup.py
test_dbapi.py gh-89022: Improve sqlite3 exceptions related to binding params and API misuse (#91572) 2022-05-04 07:16:01 -06:00
test_dump.py
test_factory.py
test_hooks.py gh-89301: Fix regression with bound values in traced SQLite statements (#92053) 2022-05-02 08:14:35 -06:00
test_regression.py gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#29054) 2022-05-03 17:03:06 -06:00
test_transactions.py bpo-46425: use absolute imports in `test_sqlite3` (GH-30676) 2022-01-22 18:03:56 +02:00
test_types.py gh-89022: Improve sqlite3 exceptions related to binding params and API misuse (#91572) 2022-05-04 07:16:01 -06:00
test_userfunctions.py gh-79097: Add support for aggregate window functions in sqlite3 (GH-20903) 2022-04-11 17:55:59 -07:00