diff options
author | unknown <msvensson@neptunus.(none)> | 2007-01-16 17:53:45 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2007-01-16 17:53:45 +0100 |
commit | d3cb7a68ea072f4dcafb4d646d5070d602ca21db (patch) | |
tree | 617e0cabf773319fc378b0b2b1f0461bcb2e92cf /client | |
parent | c5a168cfdfe9d7f570d4af7ffdae3d60aed0b4a7 (diff) | |
parent | b461810d632e7c52f36e102bdb160a0aefe43b21 (diff) | |
download | mariadb-git-d3cb7a68ea072f4dcafb4d646d5070d602ca21db.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/bug15518/my50-bug15518
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
client/mysqltest.c:
Auto merged
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 62adf6e1dbb..e2d2f0f45a6 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -5123,6 +5123,14 @@ end: dynstr_free(&ds_execute_warnings); } + + /* Close the statement if - no reconnect, need new prepare */ + if (mysql->reconnect) + { + mysql_stmt_close(stmt); + cur_con->stmt= NULL; + } + /* We save the return code (mysql_stmt_errno(stmt)) from the last call sent to the server into the mysqltest builtin variable $mysql_errno. This @@ -5928,6 +5936,8 @@ int main(int argc, char **argv) break; case Q_ENABLE_RECONNECT: set_reconnect(&cur_con->mysql, 1); + /* Close any open statements - no reconnect, need new prepare */ + close_statements(); break; case Q_DISABLE_PARSING: if (parsing_disabled == 0) |