~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/temp_table.test

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
CREATE TABLE t2 (x int not null, y int not null);
19
19
alter table t2 rename t1;
20
20
select * from t1;
21
 
create TEMPORARY TABLE t2 engine=heap select * from t1;
22
 
create TEMPORARY TABLE IF NOT EXISTS t2 (a int) engine=heap;
 
21
create TEMPORARY TABLE t2 engine=MEMORY select * from t1;
 
22
create TEMPORARY TABLE IF NOT EXISTS t2 (a int) engine=MEMORY;
23
23
 
24
24
# This should give errors
25
 
--error 1050
 
25
--error ER_TABLE_EXISTS_ERROR
26
26
CREATE TEMPORARY TABLE t1 (a int not null, b char (10) not null);
27
 
--error 1050
 
27
--error ER_TABLE_EXISTS_ERROR
28
28
ALTER TABLE t1 RENAME t2;
29
29
 
30
30
select * from t2;
88
88
 
89
89
flush status;
90
90
select * from t1 group by d;
 
91
--replace_column 2 #
91
92
show status like "created_tmp%tables";
92
93
drop table t1;
93
94
 
123
124
CREATE TABLE t1 (i INT);
124
125
CREATE TEMPORARY TABLE t2 (i INT);
125
126
 
126
 
--error 1051
 
127
--error ER_BAD_TABLE_ERROR
127
128
DROP TEMPORARY TABLE t2, t1;
128
129
 
129
130
# Table t2 should have been dropped.
130
 
--error 1146
 
131
--error ER_TABLE_UNKNOWN
131
132
SELECT * FROM t2;
132
133
# But table t1 should still be there.
133
134
SELECT * FROM t1;