summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cppext.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>2022-06-14 12:49:22 (GMT)
committerGitHub <noreply@github.com>2022-06-14 12:49:22 (GMT)
commit871b1dc469b3daccb7c3e7fcaddd245137edd719 (patch)
tree57536f717443739520267a97533552b8c6df63a1 /Lib/test/test_cppext.py
parentd42b3689f4a14694f5b1ff75c155141102aa2557 (diff)
downloadcpython-871b1dc469b3daccb7c3e7fcaddd245137edd719.zip
cpython-871b1dc469b3daccb7c3e7fcaddd245137edd719.tar.gz
cpython-871b1dc469b3daccb7c3e7fcaddd245137edd719.tar.bz2
[3.11] gh-79579: Improve DML query detection in sqlite3 (GH-93623) (#93800)
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) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Lib/test/test_cppext.py')
0 files changed, 0 insertions, 0 deletions