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 e556506 commit 119ebefCopy full SHA for 119ebef
src/result.cc
@@ -77,6 +77,15 @@ node_db_mysql::Result::Result(MYSQL* connection) throw(node_db::Exception&)
77
nextRow(NULL) {
78
this->result = mysql_store_result(this->connection);
79
80
+ MYSQL_RES* tmp_result;
81
+ while (mysql_more_results(this->connection)) {
82
+ if (mysql_next_result(this->connection)) {
83
+ tmp_result = mysql_use_result(this->connection);
84
+ mysql_free_result(tmp_result);
85
+ }
86
87
+ tmp_result = NULL;
88
+
89
try {
90
if (result == NULL && mysql_field_count(this->connection) != 0) {
91
throw node_db::Exception(mysql_error(this->connection));
0 commit comments