diff options
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index a799027542b..d48e937023b 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1921,7 +1921,8 @@ com_go(String *buffer,char *line __attribute__((unused))) if (err >= 1) error= put_error(&mysql); - if (!status.batch && (mysql.server_status & SERVER_STATUS_DB_DROPPED)) + if (!error && !status.batch && + (mysql.server_status & SERVER_STATUS_DB_DROPPED)) get_current_db(); return error; /* New command follows */ |