~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/rename.result

  • Committer: Brian Aker
  • Date: 2009-02-20 22:48:37 UTC
  • Revision ID: brian@tangent.org-20090220224837-fw5wrf46n4ru3e6a
First pass of stripping uint

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
rename table t3 to t1, t2 to t3, t1 to t2, t4 to t1;
28
28
Got one of the listed errors
29
29
rename table t3 to t4, t5 to t3, t1 to t2, t4 to t1;
30
 
Got one of the listed errors
 
30
ERROR 42S02: Table 'test.t5' doesn't exist
31
31
select * from t1;
32
32
1       table 1
33
33
1       table 1
40
40
drop table if exists t1,t2,t3,t4;
41
41
Warnings:
42
42
Note    1051    Unknown table 't4'
43
 
CREATE TABLE t1 (a int);
44
 
CREATE TABLE t3 (a int);
45
 
FLUSH TABLES WITH READ LOCK;
46
 
RENAME TABLE t1 TO t2, t3 to t4;
47
 
show tables;
48
 
Tables_in_test
49
 
t1
50
 
t3
51
 
UNLOCK TABLES;
52
 
show tables;
53
 
Tables_in_test
54
 
t2
55
 
t4
56
 
drop table t2, t4;
57
 
End of 4.1 tests
58
 
create table t1(f1 int);
59
 
create view v1 as select * from t1;
60
 
alter table v1 rename to v2;
61
 
alter table v1 rename to v2;
62
 
ERROR 42S02: Table 'test.v1' doesn't exist
63
 
rename table v2 to v1;
64
 
rename table v2 to v1;
65
 
ERROR 42S01: Table 'v1' already exists
66
 
drop view v1;
67
 
drop table t1;
68
 
End of 5.0 tests