Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WL#4030 (Deprecate RENAME DATABASE: replace with ALTER DATABASE <name>
UPGRADE) Bug 17565 (RENAME DATABASE destroys events) Bug#28360 (RENAME DATABASE destroys routines) Removed the RENAME DATABASE db1 TO db2 statement. Implemented the ALTER DATABASE db UPGRADE DATA DIRECTORY NAME statement, which has the same function.
- Loading branch information
malff@lambda.weblab
committed
Sep 10, 2007
1 parent
ab60d8a
commit 1830000
Showing
18 changed files
with
298 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,12 @@ | ||
drop database if exists testdb1; | ||
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; | ||
Database Create Database | ||
testdb1 CREATE DATABASE `testdb1` /*!40100 DEFAULT CHARACTER SET latin2 */ | ||
show tables; | ||
Tables_in_testdb1 | ||
t1 | ||
rename database testdb1 to testdb2; | ||
show create database testdb1; | ||
ERROR 42000: Unknown database 'testdb1' | ||
show create database testdb2; | ||
Database Create Database | ||
testdb2 CREATE DATABASE `testdb2` /*!40100 DEFAULT CHARACTER SET latin2 */ | ||
select database(); | ||
database() | ||
testdb2 | ||
show tables; | ||
Tables_in_testdb2 | ||
t1 | ||
select a from t1 order by a; | ||
a | ||
1 | ||
2 | ||
3 | ||
drop database testdb2; | ||
create database testdb1; | ||
rename database testdb1 to testdb1; | ||
ERROR HY000: Can't create database 'testdb1'; database exists | ||
drop database testdb1; | ||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database testdb1 to testdb2' at line 1 | ||
ALTER DATABASE wrong UPGRADE DATA DIRECTORY NAME; | ||
ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name | ||
ALTER DATABASE `#mysql41#not-supported` UPGRADE DATA DIRECTORY NAME; | ||
ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name | ||
ALTER DATABASE `#mysql51#not-yet` UPGRADE DATA DIRECTORY NAME; | ||
ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name | ||
ALTER DATABASE `#mysql50#` UPGRADE DATA DIRECTORY NAME; | ||
ERROR HY000: Incorrect usage of ALTER DATABASE UPGRADE DATA DIRECTORY NAME and name | ||
ALTER DATABASE `#mysql50#upgrade-me` UPGRADE DATA DIRECTORY NAME; | ||
ERROR 42000: Unknown database '#mysql50#upgrade-me' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.