summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2024-05-20 13:44:42 (GMT)
committerGitHub <noreply@github.com>2024-05-20 13:44:42 (GMT)
commitaf359cee75e4806650f2b9b948e398d89ceb9555 (patch)
tree4263c7bc391f47e6adc7f24aec889488ccc2117d /Modules/_sqlite
parent0883fd22e6d4a3e360b48f30f6afa34553b3786a (diff)
downloadcpython-af359cee75e4806650f2b9b948e398d89ceb9555.zip
cpython-af359cee75e4806650f2b9b948e398d89ceb9555.tar.gz
cpython-af359cee75e4806650f2b9b948e398d89ceb9555.tar.bz2
gh-118928: sqlite3: correctly bail if sequences of params are used with named placeholders (#119197)
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/cursor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 5d4b77b..0fbd408 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -675,6 +675,7 @@ bind_parameters(pysqlite_state *state, pysqlite_Statement *self,
"supplied a sequence which requires nameless (qmark) "
"placeholders.",
i+1, name);
+ return;
}
if (PyTuple_CheckExact(parameters)) {