diff options
author | monty@mashka.mysql.fi <> | 2003-01-06 01:48:59 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-01-06 01:48:59 +0200 |
commit | 1f6ecc0cd3d9acf4751ebbbf8db8b6ee468d3abf (patch) | |
tree | 5fe133480d7e74a88990405ae324694fb8797fa5 /mysql-test/t/rpl_alter.test | |
parent | f9772317eefe95fe8152d69593082b2864164e16 (diff) | |
download | mariadb-git-1f6ecc0cd3d9acf4751ebbbf8db8b6ee468d3abf.tar.gz |
Changed mysql-test to print warnings for not existing table to DROP TABLE
Cleaned up test; Removed wrong DROP TABLE commands and use standard table and database names.
changed store_warning() -> push_warning_print()
Diffstat (limited to 'mysql-test/t/rpl_alter.test')
-rw-r--r-- | mysql-test/t/rpl_alter.test | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/mysql-test/t/rpl_alter.test b/mysql-test/t/rpl_alter.test index 710dd2d09d6..6b8cf773150 100644 --- a/mysql-test/t/rpl_alter.test +++ b/mysql-test/t/rpl_alter.test @@ -1,19 +1,22 @@ source include/master-slave.inc; -drop database if exists d1; -create database d1; -create table d1.t1 ( n int); -alter table d1.t1 add m int; -insert into d1.t1 values (1,2); -create table d1.t2 (n int); -insert into d1.t2 values (45); -rename table d1.t2 to d1.t3, d1.t1 to d1.t2; +--disable_warnings +drop database if exists test_$1; +--enable_warnings +create database test_$1; + +create table test_$1.t1 ( n int); +alter table test_$1.t1 add m int; +insert into test_$1.t1 values (1,2); +create table test_$1.t2 (n int); +insert into test_$1.t2 values (45); +rename table test_$1.t2 to test_$1.t3, test_$1.t1 to test_$1.t2; save_master_pos; connection slave; sync_with_master; -select * from d1.t2; -select * from d1.t3; +select * from test_$1.t2; +select * from test_$1.t3; connection master; -drop database d1; +drop database test_$1; save_master_pos; connection slave; sync_with_master; |