~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/temp_table.test

  • Committer: Monty Taylor
  • Date: 2008-12-21 04:16:39 UTC
  • mfrom: (726 testable)
  • mto: (722.2.2 devel)
  • mto: This revision was merged to the branch mainline in revision 727.
  • Revision ID: monty@inaugust.com-20081221041639-u1d19wdrq70s5qug
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
--disable_warnings
6
6
drop table if exists t1,t2;
7
 
drop view if exists v1;
 
7
# we don't support views
 
8
#drop view if exists v1;
8
9
--enable_warnings
9
10
 
10
11
CREATE TABLE t1 (c int not null, d char (10) not null);
54
55
#
55
56
# Problem with ELT
56
57
#
57
 
create temporary table t1 (id int(10) not null unique);
58
 
create temporary table t2 (id int(10) not null primary key, 
59
 
val int(10) not null);
 
58
create temporary table t1 (id int not null unique);
 
59
create temporary table t2 (id int not null primary key, val int not null);
60
60
 
61
61
# put in some initial values
62
62
insert into t1 values (1),(2),(4);
92
92
drop table t1;
93
93
 
94
94
# Fix for BUG#8921: Check that temporary table is ingored by view commands.
95
 
create temporary table v1 as select 'This is temp. table' A;
96
 
create view v1 as select 'This is view' A;
97
 
select * from v1;
98
 
show create table v1;
99
 
show create view v1;
100
 
drop view v1;
101
 
select * from v1;
102
 
create view v1 as select 'This is view again' A;
103
 
select * from v1;
104
 
drop table v1;
105
 
select * from v1;
106
 
drop view v1;
 
95
# Commenting this out since we don't support views
 
96
#create temporary table v1 as select 'This is temp. table' A;
 
97
#create view v1 as select 'This is view' A;
 
98
#select * from v1;
 
99
#show create table v1;
 
100
#show create view v1;
 
101
#drop view v1;
 
102
#select * from v1;
 
103
#create view v1 as select 'This is view again' A;
 
104
#select * from v1;
 
105
#drop table v1;
 
106
#select * from v1;
 
107
#drop view v1;
107
108
 
108
109
# Bug #8497: tmpdir with extra slashes would cause failures
109
110
#