summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-02-13 00:50:03 +0300
committerunknown <konstantin@mysql.com>2004-02-13 00:50:03 +0300
commita8c4501de46add9b6bf7ccc36b08cfb815627a60 (patch)
treedcb82d06f37ee408753f8ca82bf8a46a6a958d5a /libmysql
parent02f15bab5a4770f2933b8ba19bc3400a37dfad6b (diff)
parente7fdbcafdec526e3e0eeff9d9920dd75b144a3b6 (diff)
downloadmariadb-git-a8c4501de46add9b6bf7ccc36b08cfb815627a60.tar.gz
manual merge, bug #2247
include/mysql.h: Auto merged libmysql/libmysql.c: Auto merged tests/client_test.c: manual merge
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 5c5898dfd7d..859ec92f793 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2010,6 +2010,7 @@ static my_bool execute(MYSQL_STMT * stmt, char *packet, ulong length)
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
DBUG_RETURN(1);
}
+ stmt->affected_rows= mysql->affected_rows;
DBUG_RETURN(0);
}
@@ -2106,7 +2107,7 @@ ulong STDCALL mysql_param_count(MYSQL_STMT * stmt)
my_ulonglong STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt)
{
- return stmt->mysql->last_used_con->affected_rows;
+ return stmt->affected_rows;
}
@@ -3173,6 +3174,7 @@ int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
DBUG_RETURN(0);
}
mysql->affected_rows= result->row_count= result->data->rows;
+ stmt->affected_rows= result->row_count;
result->data_cursor= result->data->data;
result->fields= stmt->fields;
result->field_count= stmt->field_count;