diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2010-06-30 11:16:06 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2010-06-30 11:16:06 +0200 |
commit | 18388d2105efe47f59e7a201154907ec9d7508df (patch) | |
tree | babf12f0544b0e5d9c55ca0ff914006723527994 /man | |
parent | 836f7fcfc6ad843b11b551a8b9715422d38f2356 (diff) | |
download | mariadb-git-18388d2105efe47f59e7a201154907ec9d7508df.tar.gz |
Bug #53899 Wrong mysql_stmt_errno() after connection loss with
automatic reconnect
A client with automatic reconnect enabled will see the error
message "Lost connection to MySQL server during query" if the
connection is lost between mysql_stmt_prepare() and
mysql_stmt_execute(). The mysql_stmt_errno() number, however,
is 0 -- not the corresponding value 2013.
This patch checks for the case where the prepared statement
has been pruned due to a connection loss (i.e., stmt->mysql
has been set to NULL) during a call to cli_advanced_command(),
and avoids changing the last_errno to the result of the last
reconnect attempt.
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions