diff options
author | unknown <kroki/tomash@moonlight.intranet> | 2006-11-17 12:21:32 +0300 |
---|---|---|
committer | unknown <kroki/tomash@moonlight.intranet> | 2006-11-17 12:21:32 +0300 |
commit | 2d04b1914de45129569d08dceb74f647f3004563 (patch) | |
tree | 592172c85c268458ccc191a7b7cfcc764879e8e8 /libmysqld/embedded_priv.h | |
parent | c6d317831ab8ccbef3685a5f03ca8c2cfa4d92f0 (diff) | |
download | mariadb-git-2d04b1914de45129569d08dceb74f647f3004563.tar.gz |
BUG#23383: mysql_affected_rows() returns different values than
mysql_stmt_affected_rows()
The problem was that affected_rows for prepared statement wasn't updated
in the client library on the error. The solution is to always update
affected_rows, which will be equal to -1 on the error.
libmysql/libmysql.c:
Update status variables even in the case of an error. Some variables
have a defined value on the error (like affected_rows is -1), others are
undefined, so updating them won't harm.
libmysqld/lib_sql.cc:
Update status variables even in the case of an error. Some variables
have a defined value on the error (like affected_rows is -1), others are
undefined, so updating them won't harm.
tests/mysql_client_test.c:
Add test for bug#23383: mysql_affected_rows() returns different values
than mysql_stmt_affected_rows().
Diffstat (limited to 'libmysqld/embedded_priv.h')
0 files changed, 0 insertions, 0 deletions