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 eb48926 commit 5831a69Copy full SHA for 5831a69
mariadb/mariadb_cursor.c
@@ -405,12 +405,14 @@ PyObject *MrdbCursor_clear_result(MrdbCursor *self)
405
self->stmt)
406
{
407
/* free current result */
408
- mysql_stmt_free_result(self->stmt);
+ if (mysql_stmt_field_count(self->stmt))
409
+ mysql_stmt_free_result(self->stmt);
410
411
/* check if there are more pending result sets */
412
while (mysql_stmt_next_result(self->stmt) == 0)
413
414
415
416
}
417
} else if (self->parseinfo.is_text)
418
0 commit comments