~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/r/heap.result

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
create temporary table t1 (a int not null,b int not null, primary key (a)) engine=MEMORY comment="testing heaps";
3
3
insert into t1 values(1,1),(2,2),(3,3),(4,4);
4
4
delete from t1 where a=1 or a=0;
 
5
show table status like "t1";
 
6
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
7
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
5
8
show keys from t1;
6
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
7
 
t1      0       PRIMARY 1       a       NULL    3       NULL    NULL            HASH            
 
9
Table   Unique  Key_name        Seq_in_index    Column_name
 
10
t1      TRUE    PRIMARY 1       a
8
11
select * from t1;
9
12
a       b
10
13
2       2
32
35
create temporary table t1 (a int not null,b int not null, primary key (a)) engine=MEMORY comment="testing heaps";
33
36
insert into t1 values(1,1),(2,2),(3,3),(4,4);
34
37
alter table t1 modify a int not null auto_increment, engine=innodb, comment="new innodb table";
 
38
show table status like "t1";
 
39
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
40
#       test    t1      TEMPORARY       InnoDB  #       #       #       #       #
35
41
select * from t1;
36
42
a       b
37
43
1       1
693
699
create temporary table t1 (c char(10)) engine=memory;
694
700
create temporary table t2 (c varchar(10)) engine=memory;
695
701
show table status like 't_';
696
 
Name    Engine  Version Row_format      Rows    Avg_row_length  Data_length     Max_data_length Index_length    Data_free       Auto_increment  Create_time     Update_time     Check_time      Collation       Checksum        Create_options  Comment
 
702
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
703
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
 
704
#       test    t2      TEMPORARY       MEMORY  #       #       #       #       #
697
705
drop table t1, t2;
698
706
CREATE TEMPORARY TABLE t1(a VARCHAR(1), b VARCHAR(2), c VARCHAR(256),
699
707
KEY(a), KEY(b), KEY(c)) ENGINE=MEMORY;