~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/rename.test

  • Committer: Mark Atwood
  • Date: 2010-06-24 03:15:21 UTC
  • mto: (1637.2.4 build)
  • mto: This revision was merged to the branch mainline in revision 1639.
  • Revision ID: me@mark.atwood.name-20100624031521-gafmppfbf5afm68w
new syslog module, with plugins for query log, error message, and SYSLOG() function

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'