Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8c09015

Browse filesBrowse files
committed
Check after mysql_store_result propery
fixes PyMySQL#51
1 parent 1383f3f commit 8c09015
Copy full SHA for 8c09015

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎_mysql.c

Copy file name to clipboardExpand all lines: _mysql.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.