mirror of
https://github.com/MariaDB/server.git
synced 2025-06-15 00:02:46 +03:00
Fix for bug #2247: "mysql_stmt_affected_rows returns affected rows from
last command" include/mysql.h: Fix for bug #2247: added affected_rows variable to MYSQL_STMT libmysql/libmysql.c: Fix for bug #2247: save mysql->affected_rows in stmt->affected_rows after mysql_execute() and mysql_stmt_store_result(). tests/client_test.c: Fix for bug #2247: test added
This commit is contained in:
@ -537,6 +537,8 @@ typedef struct st_mysql_stmt
|
||||
char *query; /* query buffer */
|
||||
MEM_ROOT mem_root; /* root allocations */
|
||||
my_ulonglong last_fetched_column; /* last fetched column */
|
||||
my_ulonglong affected_rows; /* copy of mysql->affected_rows
|
||||
after statement execution */
|
||||
unsigned long stmt_id; /* Id for prepared statement */
|
||||
unsigned int last_errno; /* error code */
|
||||
unsigned int param_count; /* parameters count */
|
||||
|
Reference in New Issue
Block a user