Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6079814 commit dd4b299Copy full SHA for dd4b299
1 file changed
Modules/_sqlite/cursor.c
@@ -891,6 +891,12 @@ PyObject* pysqlite_cursor_iternext(pysqlite_Cursor *self)
891
892
if (rc == SQLITE_ROW) {
893
self->next_row = _pysqlite_fetch_one_row(self);
894
+ if (self->next_row == NULL) {
895
+ (void)pysqlite_statement_reset(self->statement);
896
+ Py_DECREF(next_row);
897
+ _pysqlite_seterror(self->connection->db, NULL);
898
+ return NULL;
899
+ }
900
}
901
902
0 commit comments