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-344: reset internal row counter before executing prepared statement

This commit is contained in:
Georg Richter
2018-06-28 17:22:08 +02:00
parent dd54e6fa28
commit 9e1fef0bf2
2 changed files with 30 additions and 2 deletions

View File

@@ -1977,8 +1977,9 @@ int STDCALL mysql_stmt_execute(MYSQL_STMT *stmt)
{
ma_free_root(&stmt->result.alloc, MYF(MY_KEEP_PREALLOC));
stmt->result_cursor= stmt->result.data= 0;
stmt->result.rows= 0;
}
/* CONC-344: set row count to zero */
stmt->result.rows= 0;
if (stmt->array_size > 0)
request= (char *)mysql_stmt_execute_generate_bulk_request(stmt, &request_len);
else