cpython/Lib/test/test_sqlite3
Erlend Egeberg Aasland 871b1dc469
[3.11] gh-79579: Improve DML query detection in sqlite3 (GH-93623) (#93800)
The fix involves using pysqlite_check_remaining_sql(), not only to check
for multiple statements, but now also to strip leading comments and
whitespace from SQL statements, so we can improve DML query detection.

pysqlite_check_remaining_sql() is renamed lstrip_sql(), to more
accurately reflect its function, and hardened to handle more SQL comment
corner cases.
(cherry picked from commit 46740073ef)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-06-14 14:49:22 +02:00
..
__init__.py
__main__.py
test_backup.py
test_dbapi.py [3.11] gh-79579: Improve DML query detection in sqlite3 (GH-93623) (#93800) 2022-06-14 14:49:22 +02: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 Clean up the sqlite3 tests (GH-93056) 2022-05-21 09:37:04 -07:00
test_transactions.py
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