diff options
author | Erlend Egeberg Aasland <erlend.aasland@protonmail.com> | 2022-06-14 11:56:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 11:56:36 (GMT) |
commit | 46740073ef32bf83964c39609c7a7a4772c51ce3 (patch) | |
tree | 659ceb673fb4e9e2606221a531270f61eb946dc5 /Python/ast.c | |
parent | e566ce5496f1bad81c431aaee65e36d5e44771c5 (diff) | |
download | cpython-46740073ef32bf83964c39609c7a7a4772c51ce3.zip cpython-46740073ef32bf83964c39609c7a7a4772c51ce3.tar.gz cpython-46740073ef32bf83964c39609c7a7a4772c51ce3.tar.bz2 |
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.
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions