diff options
author | unknown <bar@mysql.com> | 2006-02-13 11:49:28 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2006-02-13 11:49:28 +0400 |
commit | bc5dc9e08582e42c695fbc337c42d7be4a8f80a2 (patch) | |
tree | 7556874a6f6490a8cd49f55fe0c7ed08d7f14167 /mysql-test/t/renamedb.test | |
parent | 3a2b70f8414a1ee02f8a210f22a2707f66bf0ce5 (diff) | |
download | mariadb-git-bc5dc9e08582e42c695fbc337c42d7be4a8f80a2.tar.gz |
renamedb.test, renamedb.result:
new file
Many files:
WL#757 RENAME DATABASE
sql/mysql_priv.h:
WL#757 RENAME DATABASE
sql/mysqld.cc:
WL#757 RENAME DATABASE
sql/sql_db.cc:
WL#757 RENAME DATABASE
sql/sql_lex.h:
WL#757 RENAME DATABASE
sql/sql_parse.cc:
WL#757 RENAME DATABASE
sql/sql_rename.cc:
WL#757 RENAME DATABASE
sql/sql_table.cc:
WL#757 RENAME DATABASE
sql/sql_yacc.yy:
WL#757 RENAME DATABASE
Diffstat (limited to 'mysql-test/t/renamedb.test')
-rw-r--r-- | mysql-test/t/renamedb.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/renamedb.test b/mysql-test/t/renamedb.test new file mode 100644 index 00000000000..5cfb2ce0c12 --- /dev/null +++ b/mysql-test/t/renamedb.test @@ -0,0 +1,18 @@ +--disable_warnings +drop database if exists testdb1; +--enable_warnings + +create database testdb1 default character set latin2; +use testdb1; +create table t1 (a int); +insert into t1 values (1),(2),(3); +show create database testdb1; +show tables; +rename database testdb1 to testdb2; +--error 1049 +show create database testdb1; +show create database testdb2; +select database(); +show tables; +select a from t1 order by a; +drop database testdb2; |