Skip to content

Commit 2229d34

Browse files
author
Erlend Egeberg Aasland
authored
[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 4674007)
1 parent f9585e2 commit 2229d34

File tree

3 files changed

+1939
-75
lines changed

3 files changed

+1939
-75
lines changed

0 commit comments

Comments
 (0)