~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/rename.test

  • Committer: Brian Aker
  • Date: 2009-11-18 22:58:22 UTC
  • mto: (1223.1.1 push) (1226.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: brian@gaz-20091118225822-4ryr9rviir23o0kr
Second pass through bugs related to CREATE TABLE LIKE

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 ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
 
22
--error 1050,1050
23
23
rename table t1 to t2;
24
 
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
 
24
--error 1050,1050
25
25
rename table t1 to t1;
26
 
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
 
26
--error 1050,1050
27
27
rename table t3 to t4, t2 to t3, t1 to t2, t4 to t2;
28
28
show tables like "t_";
29
 
--error ER_TABLE_EXISTS_ERROR, ER_TABLE_EXISTS_ERROR
 
29
--error 1050,1050
30
30
rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
31
 
--error ER_TABLE_UNKNOWN
 
31
--error ER_NO_SUCH_TABLE
32
32
rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
33
33
 
34
34
select * from 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;
 
39
drop table if exists t1,t2,t3,t4;
 
 
b'\\ No newline at end of file'