diff options
author | unknown <konstantin@oak.local> | 2004-02-06 16:03:09 +0300 |
---|---|---|
committer | unknown <konstantin@oak.local> | 2004-02-06 16:03:09 +0300 |
commit | 3aef1d2c4b962c52f7f5101f7834584b64331adc (patch) | |
tree | 17ba0d8b03e854ca695f50767080a37afbf279a6 /include | |
parent | 453a32e92720f4b3bb504d88c70433333190f174 (diff) | |
download | mariadb-git-3aef1d2c4b962c52f7f5101f7834584b64331adc.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mysql.h b/include/mysql.h index d1b467f9649..dc9f4c28800 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -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 */ |