diff options
author | unknown <pem@mysql.com> | 2005-10-26 16:35:59 +0200 |
---|---|---|
committer | unknown <pem@mysql.com> | 2005-10-26 16:35:59 +0200 |
commit | 81142c86dca66bf0ab37333d32ab64ee40b05b09 (patch) | |
tree | 3d6ded207630f221e6788f4123cda943dd427767 /mysql-test/t/sp-destruct.test | |
parent | 9349f18b4491b55d8edc4a314131bd44108278ad (diff) | |
download | mariadb-git-81142c86dca66bf0ab37333d32ab64ee40b05b09.tar.gz |
Follow-up for BUG#14233 fix. Changed backup method for the mysql.proc table
in sp-destruct.test since using "create ... as ..." didn't preserve everything,
which made the system_mysql_db test fail.
mysql-test/r/sp-destruct.result:
Updated result.
mysql-test/t/sp-destruct.test:
Changed backup method for mysql.proc.
Diffstat (limited to 'mysql-test/t/sp-destruct.test')
-rw-r--r-- | mysql-test/t/sp-destruct.test | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/mysql-test/t/sp-destruct.test b/mysql-test/t/sp-destruct.test index 00eeb8ddc9d..7b13d273bd1 100644 --- a/mysql-test/t/sp-destruct.test +++ b/mysql-test/t/sp-destruct.test @@ -11,11 +11,10 @@ --source include/not_windows.inc # Backup proc table -use mysql; ---disable_warnings -drop table if exists proc_backup; ---enable_warnings -create table proc_backup as select * from proc; +--system rm -rf var/master-data/mysql/backup +--system mkdir var/master-data/mysql/backup +--system cp var/master-data/mysql/proc.* var/master-data/mysql/backup/ + use test; --disable_warnings @@ -67,10 +66,8 @@ create view v1 as select bug14233_f(); insert into t1 values (0); # Restore mysql.proc -use mysql; -create table proc as select * from proc_backup; -alter table proc add primary key (db,name,type); -use test; +--system mv var/master-data/mysql/backup/* var/master-data/mysql/ +--system rmdir var/master-data/mysql/backup flush table mysql.proc; flush privileges; @@ -124,7 +121,6 @@ insert into t1 values (0); # Clean-up delete from mysql.proc where name like 'bug14233%'; -drop table mysql.proc_backup; drop trigger t1_ai; drop table t1; drop view v1; |