diff options
author | jimw@mysql.com <> | 2005-03-28 09:59:41 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-03-28 09:59:41 -0800 |
commit | 9c86b351945af4e3cde4e48a33394a268c16429a (patch) | |
tree | 78e84e0886e0c93e92557c2a21167ac6e8d2ebd2 /client | |
parent | 4f19826d8038efecd2251c1a60632e3e6cf39295 (diff) | |
download | mariadb-git-9c86b351945af4e3cde4e48a33394a268c16429a.tar.gz |
Fix reconnect when using prepared statements, and add
--disable_reconnect and --enable_reconnect to mysqltest
so that it can be tested properly. (Bug #8866)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 042f84dfb9e..1c102bc1073 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -280,6 +280,7 @@ Q_DISPLAY_VERTICAL_RESULTS, Q_DISPLAY_HORIZONTAL_RESULTS, Q_QUERY_VERTICAL, Q_QUERY_HORIZONTAL, Q_START_TIMER, Q_END_TIMER, Q_CHARACTER_SET, Q_DISABLE_PS_PROTOCOL, Q_ENABLE_PS_PROTOCOL, +Q_DISABLE_RECONNECT, Q_ENABLE_RECONNECT, Q_UNKNOWN, /* Unknown command. */ Q_COMMENT, /* Comments, ignored. */ @@ -365,6 +366,8 @@ const char *command_names[]= "character_set", "disable_ps_protocol", "enable_ps_protocol", + "disable_reconnect", + "enable_reconnect", 0 }; @@ -3624,6 +3627,12 @@ int main(int argc, char **argv) case Q_ENABLE_PS_PROTOCOL: ps_protocol_enabled= ps_protocol; break; + case Q_DISABLE_RECONNECT: + cur_con->mysql.reconnect= 0; + break; + case Q_ENABLE_RECONNECT: + cur_con->mysql.reconnect= 1; + break; default: processed = 0; break; } |