Skip to content

Commit 4154756

Browse files
committed
Merge pull request #56 from methane/fix/51
Check after mysql_store_result propery
2 parents 1383f3f + 8c09015 commit 4154756

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)