mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45041: Restore sqlite3
executescript behaviour for SELECT
queries (GH-28509)
* bpo-45041: Restore sqlite3 executescript behaviour for select queries * Add regression test
This commit is contained in:
parent
dd02a696e5
commit
3f2c433da5
2 changed files with 12 additions and 1 deletions
|
@ -760,7 +760,7 @@ pysqlite_cursor_executescript_impl(pysqlite_Cursor *self,
|
|||
&tail);
|
||||
if (rc == SQLITE_OK) {
|
||||
do {
|
||||
(void)sqlite3_step(stmt);
|
||||
rc = sqlite3_step(stmt);
|
||||
} while (rc == SQLITE_ROW);
|
||||
rc = sqlite3_finalize(stmt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue