~jaypipes/drizzle/replication-to-transaction

« back to all changes in this revision

Viewing changes to tests/r/heap.result

  • Committer: Brian Aker
  • Date: 2010-03-09 22:58:27 UTC
  • mfrom: (1320.1.18 build)
  • Revision ID: brian@gaz-20100309225827-7igxztca4lrj3fx3
Merge in show status work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
5
show table status like "t1";
6
 
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
7
 
t1      MEMORY  0       DEFAULT 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
6
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
7
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
8
8
show keys from t1;
9
9
Table   Unique  Key_name        Seq_in_index    Column_name
10
10
t1      TRUE    PRIMARY 1       a
36
36
insert into t1 values(1,1),(2,2),(3,3),(4,4);
37
37
alter table t1 modify a int not null auto_increment, engine=innodb, comment="new innodb table";
38
38
show table status like "t1";
39
 
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
40
 
t1      InnoDB  0       DEFAULT 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
39
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
40
#       test    t1      TEMPORARY       InnoDB  #       #       #       #       #
41
41
select * from t1;
42
42
a       b
43
43
1       1
699
699
create temporary table t1 (c char(10)) engine=memory;
700
700
create temporary table t2 (c varchar(10)) engine=memory;
701
701
show table status like 't_';
702
 
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
703
 
t1      MEMORY  #       DEFAULT 0       0       0       #       0       0       0       0       0       0       utf8_general_ci 0               
704
 
t2      MEMORY  #       DEFAULT 0       0       0       #       0       0       0       0       0       0       utf8_general_ci 0               
 
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  #       #       #       #       #
705
705
drop table t1, t2;
706
706
CREATE TEMPORARY TABLE t1(a VARCHAR(1), b VARCHAR(2), c VARCHAR(256),
707
707
KEY(a), KEY(b), KEY(c)) ENGINE=MEMORY;