summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2022-06-14 13:05:36 (GMT)
committerGitHub <noreply@github.com>2022-06-14 13:05:36 (GMT)
commit2229d34a6ef9c03e476882f46bba4d7c83552d1e (patch)
treea699290af00f9bedf002fc4af83fbf152eb10193 /Lib/posixpath.py
parentf9585e2adc36fb2886f96ef86a5aa14215fc1151 (diff)
downloadcpython-2229d34a6ef9c03e476882f46bba4d7c83552d1e.zip
cpython-2229d34a6ef9c03e476882f46bba4d7c83552d1e.tar.gz
cpython-2229d34a6ef9c03e476882f46bba4d7c83552d1e.tar.bz2
[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 46740073ef32bf83964c39609c7a7a4772c51ce3)
Diffstat (limited to 'Lib/posixpath.py')
0 files changed, 0 insertions, 0 deletions