mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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
|
||
|---|---|---|
| .. | ||
| clinic | ||
| cache.c | ||
| cache.h | ||
| connection.c | ||
| connection.h | ||
| cursor.c | ||
| cursor.h | ||
| microprotocols.c | ||
| microprotocols.h | ||
| module.c | ||
| module.h | ||
| prepare_protocol.c | ||
| prepare_protocol.h | ||
| row.c | ||
| row.h | ||
| statement.c | ||
| statement.h | ||
| util.c | ||
| util.h | ||