1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fix for CONC-504: reset stmt->result.rows when executing mysql_stmt_next_result

While in text protocol the number of rows is resetted in mysql_store/use_result
in binary protocol we need to explicitly reset it when switching to next result set.
This commit is contained in:
Georg Richter
2020-10-02 09:47:52 +02:00
parent c17947c68a
commit 55a64c1bd5
2 changed files with 44 additions and 0 deletions

View File

@@ -2374,6 +2374,7 @@ int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
}
stmt->field_count= stmt->mysql->field_count;
stmt->result.rows= 0;
return(rc);
}