gh-79579: Improve DML query detection in sqlite3 (#93623)
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.
E
Erlend Egeberg Aasland committed
46740073ef32bf83964c39609c7a7a4772c51ce3
Parent: e566ce5
Committed by GitHub <noreply@github.com>
on 6/14/2022, 11:56:36 AM