Skip to content

Commit 8c09015

Browse files
committed
Check after mysql_store_result propery
fixes #51
1 parent 1383f3f commit 8c09015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_mysql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ _mysql_ResultObject_Initialize(
408408
self->result = result;
409409
Py_END_ALLOW_THREADS ;
410410
if (!result) {
411-
if (mysql_field_count(&(conn->connection)) > 0) {
411+
if (mysql_errno(&(conn->connection))) {
412412
_mysql_Exception(conn);
413413
return -1;
414414
}

0 commit comments

Comments
 (0)