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 /include | |
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 'include')
-rw-r--r-- | include/mysql_com.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index 449cd0ba396..6fc1d106197 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -127,6 +127,7 @@ enum enum_server_command #define SERVER_MORE_RESULTS_EXISTS 8 /* Multi query - next query exists */ #define SERVER_QUERY_NO_GOOD_INDEX_USED 16 #define SERVER_QUERY_NO_INDEX_USED 32 +#define SERVER_STATUS_DB_DROPPED 256 /* A database was dropped */ #define MYSQL_ERRMSG_SIZE 512 #define NET_READ_TIMEOUT 30 /* Timeout on read */ |