Commit 9c543f19 authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:4472], fix fileops-3

git-svn-id: file:///svn/mysql/tests/mysql-test@39783 c7de825b-a66e-492c-adef-691d508d4ae1
parent a850daa3
......@@ -8,15 +8,10 @@ a b c
select sum(a) from foo;
sum(a)
NULL
alter table foo drop index a;
select * from foo;
a b c
drop table foo;
ERROR 42S02: Unknown table 'foo'
rename table foo to bar;
ERROR HY000: Error on rename of './test/foo' to './test/bar' (errno: -30994)
truncate table foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
alter table foo drop index a;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
rename table foo to bar;
drop table bar;
commit;
DROP TABLE foo;
......@@ -17,15 +17,11 @@ select * from foo;
select sum(a) from foo;
connection default;
alter table foo drop index a;
select * from foo;
--error ER_BAD_TABLE_ERROR
drop table foo;
--error ER_ERROR_ON_RENAME
rename table foo to bar;
--error ER_LOCK_WAIT_TIMEOUT
truncate table foo;
--error ER_LOCK_WAIT_TIMEOUT
alter table foo drop index a;
rename table foo to bar;
drop table bar;
connection conn1;
commit;
......@@ -35,4 +31,3 @@ disconnect conn1;
connection default;
# Final cleanup.
DROP TABLE foo;
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment