diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-10-21 17:02:24 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-10-21 17:02:24 +0500 |
commit | 70fe41d2ec0fccdd54f643d832b67274a8f76f16 (patch) | |
tree | cc1d9f6ec82546e9be474e94ed72da5e649bfad8 /sql/sql_db.cc | |
parent | ffd77c4679615ba3e4dd7614dadc735af5d4aa9c (diff) | |
download | mariadb-git-70fe41d2ec0fccdd54f643d832b67274a8f76f16.tar.gz |
A fix (bug #4802 prompt in mysql client shows wrong database after dropping default db).
client/mysql.cc:
A fix (bug #4802 prompt in mysql client shows wrong database after dropping default db).
Introduced new get_current_db() function which is called from the com_use()
and the com_go() if we get SERVER_STATUS_DB_DROPPED.
include/mysql_com.h:
A fix (bug #4802 prompt in mysql client shows wrong database after dropping default db).
SERVER_STATUS_DB_DROPPED flag added.
Note: it is set to 256 to don't conflict with 5.0 ver.
sql/sql_db.cc:
A fix (bug #4802 prompt in mysql client shows wrong database after dropping default db).
SERVER_STATUS_DB_DROPPED flag is set/unset.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 426f7d36633..e5b426ef508 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -634,7 +634,9 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent) thd->clear_error(); mysql_bin_log.write(&qinfo); } + thd->server_status|= SERVER_STATUS_DB_DROPPED; send_ok(thd, (ulong) deleted); + thd->server_status&= !SERVER_STATUS_DB_DROPPED; } exit: |