~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/t/rename.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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;