~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/rename.test

  • Committer: Brian Aker
  • Date: 2010-11-08 18:24:58 UTC
  • mto: (1921.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1916.
  • Revision ID: brian@tangent.org-20101108182458-twv4hyix43ojno80
Merge in changes such that lock is now broken out into its own directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
select * from t1;
20
20
 
21
21
# The following should give errors
22
 
--error 1050,1050
 
22
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
23
23
rename table t1 to t2;
24
 
--error 1050,1050
 
24
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
25
25
rename table t1 to t1;
26
 
--error 1050,1050
 
26
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
27
27
rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
28
28
show tables like "t_";
29
 
--error 1050,1050
 
29
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
30
30
rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
31
31
--error ER_NO_SUCH_TABLE
32
32
rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
36
36
select * from t3;
37
37
 
38
38
# This should give a warning for t4
39
 
drop table if exists t1,t2,t3,t4;
 
 
b'\\ No newline at end of file'
 
39
drop table if exists t1,t2,t3,t4;