mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-118928: sqlite3: correctly bail if sequences of params are used with named placeholders (#119197)
This commit is contained in:
parent
0883fd22e6
commit
af359cee75
2 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue