diff options
author | unknown <lars@mysql.com> | 2006-02-13 15:02:51 +0100 |
---|---|---|
committer | unknown <lars@mysql.com> | 2006-02-13 15:02:51 +0100 |
commit | a5fda39df7e51c45cdd4e13f576a5b83e95e2ec7 (patch) | |
tree | cc3d35fec647a657de7ef0fce642c4f2b6618bef /mysql-test | |
parent | 145cb3ef705d94c1e12ff78ea75a76af85fa8d5c (diff) | |
parent | a22bd444e19e0a0f18c5de6e89bc092d89981776 (diff) | |
download | mariadb-git-a5fda39df7e51c45cdd4e13f576a5b83e95e2ec7.tar.gz |
Merge lthalmann@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/users/lthalmann/bkroot/mysql-5.1-new
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/mysqldump.result | 32 | ||||
-rw-r--r-- | mysql-test/r/renamedb.result | 29 | ||||
-rw-r--r-- | mysql-test/t/disabled.def | 1 | ||||
-rw-r--r-- | mysql-test/t/mysqldump.test | 24 | ||||
-rw-r--r-- | mysql-test/t/renamedb.test | 18 |
5 files changed, 104 insertions, 0 deletions
diff --git a/mysql-test/r/mysqldump.result b/mysql-test/r/mysqldump.result index 79b22964f8a..7328a7da2eb 100644 --- a/mysql-test/r/mysqldump.result +++ b/mysql-test/r/mysqldump.result @@ -2650,3 +2650,35 @@ DELIMITER ; DROP TRIGGER tr1; DROP TABLE t1; +create table t1 (a text , b text); +create table t2 (a text , b text); +insert t1 values ("Duck, Duck", "goose"); +insert t1 values ("Duck, Duck", "pidgeon"); +insert t2 values ("We the people", "in order to perform"); +insert t2 values ("a more perfect", "union"); +select * from t1; +a b +Duck, Duck goose +Duck, Duck pidgeon +select * from t2; +a b +We the people in order to perform +a more perfect union +test.t1: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0 +test.t2: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0 +test.t1: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0 +test.t2: Records: 2 Deleted: 0 Skipped: 0 Warnings: 0 +select * from t1; +a b +Duck, Duck goose +Duck, Duck pidgeon +Duck, Duck goose +Duck, Duck pidgeon +select * from t2; +a b +We the people in order to perform +a more perfect union +We the people in order to perform +a more perfect union +drop table t1; +drop table t2; diff --git a/mysql-test/r/renamedb.result b/mysql-test/r/renamedb.result new file mode 100644 index 00000000000..26ae42e72aa --- /dev/null +++ b/mysql-test/r/renamedb.result @@ -0,0 +1,29 @@ +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; diff --git a/mysql-test/t/disabled.def b/mysql-test/t/disabled.def index 7555df95b04..5b481175685 100644 --- a/mysql-test/t/disabled.def +++ b/mysql-test/t/disabled.def @@ -10,6 +10,7 @@ # ############################################################################## +archive : Change between azio and gzio is causing an issue events : Test case instability - infinite locking. To be fixed. func_group : Bug#15448 func_math : Bug#15448 diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test index 592bc289d05..dea8e32869e 100644 --- a/mysql-test/t/mysqldump.test +++ b/mysql-test/t/mysqldump.test @@ -1048,3 +1048,27 @@ SET SQL_MODE = @old_sql_mode; DROP TRIGGER tr1; DROP TABLE t1; + +# +# Added for use-thread option +# +create table t1 (a text , b text); +create table t2 (a text , b text); +insert t1 values ("Duck, Duck", "goose"); +insert t1 values ("Duck, Duck", "pidgeon"); +insert t2 values ("We the people", "in order to perform"); +insert t2 values ("a more perfect", "union"); +select * from t1; +select * from t2; +--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ test +--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t1.sql +--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/t2.sql +# The first load tests the pausing code +--exec $MYSQL_IMPORT --use-threads=1 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt +# Now we test with multiple threads! +--exec $MYSQL_IMPORT --use-threads=5 test $MYSQLTEST_VARDIR/tmp/t1.txt $MYSQLTEST_VARDIR/tmp/t2.txt +select * from t1; +select * from t2; + +drop table t1; +drop table t2; 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; |