You've already forked mariadb-connector-c
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user