summaryrefslogtreecommitdiffstats
path: root/Python/dynload_shlib.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>2022-06-14 11:56:36 (GMT)
committerGitHub <noreply@github.com>2022-06-14 11:56:36 (GMT)
commit46740073ef32bf83964c39609c7a7a4772c51ce3 (patch)
tree659ceb673fb4e9e2606221a531270f61eb946dc5 /Python/dynload_shlib.c
parente566ce5496f1bad81c431aaee65e36d5e44771c5 (diff)
downloadcpython-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/dynload_shlib.c')
0 files changed, 0 insertions, 0 deletions