diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-10-07 11:16:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 10:16:45 +0100 |
commit | 3f2c433da560d7999a52f9fcba4bbd0898848520 (patch) | |
tree | e9412020ea841dacf5adbcb91fe5cd87d9c49b7b /Modules/_sqlite/cursor.c | |
parent | dd02a696e55b450413e765e698e653d781ca4205 (diff) | |
download | cpython-3f2c433da560d7999a52f9fcba4bbd0898848520.tar.gz cpython-3f2c433da560d7999a52f9fcba4bbd0898848520.zip |
bpo-45041: Restore `sqlite3` executescript behaviour for `SELECT` queries (GH-28509)
* bpo-45041: Restore sqlite3 executescript behaviour for select queries
* Add regression test
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r-- | Modules/_sqlite/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 38ccdcf5379..ca74a68de4d 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -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); } |