~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/rename.test

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:20:34 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114052034-b45vpdmk4a8l70c2
just a syntax fix

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;