cpython/Modules/_sqlite
Erlend Egeberg Aasland 2229d34a6e
[3.10] gh-79579: Improve DML query detection in sqlite3 (GH-93623) (#93801)
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)
2022-06-14 15:05:36 +02:00
..
clinic [3.10] sqlite3: normalise pre-acronym determiners (GH-31772) (GH-31806) 2022-03-11 17:10:55 -08:00
cache.c
cache.h
connection.c [3.10] gh-89301: Fix regression with bound values in traced SQLite statements (#92147) 2022-05-02 10:21:13 -06:00
connection.h
cursor.c [3.10] gh-93421: Update sqlite3 cursor.rowcount only after SQLITE_DONE (GH-93526) (GH-93599) 2022-06-08 13:31:14 +02:00
cursor.h
microprotocols.c
microprotocols.h
module.c [3.10] bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) (GH-31753) 2022-03-08 07:30:14 -08:00
module.h
prepare_protocol.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
prepare_protocol.h
row.c bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766) 2021-06-17 11:19:44 +01:00
row.h
statement.c [3.10] gh-79579: Improve DML query detection in sqlite3 (GH-93623) (#93801) 2022-06-14 15:05:36 +02:00
statement.h
util.c
util.h