~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/create_not_windows.result

  • Committer: Brian Aker
  • Date: 2009-06-16 00:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1094.
  • Revision ID: brian@gaz-20090616005322-w0ode4jul9z8s2y9
Partial fix for tests for tmp

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists `about:text`;
2
 
create table `about:text` ( 
 
2
create TEMPORARY table `about:text` ( 
3
3
_id int not null auto_increment,
4
4
`about:text` varchar(255) not null default '',
5
5
primary key (_id)
6
6
) ENGINE=MyISAM;
7
7
show create table `about:text`;
8
8
Table   Create Table
9
 
about:text      CREATE TABLE `about:text` (
 
9
about:text      CREATE TEMPORARY TABLE `about:text` (
10
10
  `_id` int NOT NULL AUTO_INCREMENT,
11
11
  `about:text` varchar(255) NOT NULL DEFAULT '',
12
12
  PRIMARY KEY (`_id`)
14
14
drop table `about:text`;
15
15
use test;
16
16
drop table if exists t1;
17
 
create table break_frm(a int) engine=myisam;
 
17
create TEMPORARY table break_frm(a int) engine=myisam;
18
18
insert into break_frm values(1);
19
19
"We get an error because the table is in the definition cache"
20
 
create table break_frm(a int, b int);
 
20
create TEMPORARY table break_frm(a int, b int);
21
21
ERROR 42S01: Table 'break_frm' already exists
22
22
"Flush the cache and recreate the table anew to be able to drop it"
23
23
flush tables;
27
27
"Try to select from the table. This should not crash the server"
28
28
select count(a) from break_frm;
29
29
count(a)
30
 
0
 
30
1
31
31
drop table break_frm;
32
 
create table break_frm(a int) engine=myisam;
 
32
create TEMPORARY table break_frm(a int) engine=myisam;
33
33
drop table if exists break_frm;