~jaypipes/drizzle/replication-to-transaction

« back to all changes in this revision

Viewing changes to tests/r/heap_var.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:
6
6
ERROR 42000: Incorrect usage/placement of 'block_size'
7
7
create temporary table t1 (a int not null, b int, c varchar(400), d varchar(400), primary key (a), key (b)) engine=MEMORY comment="testing heaps" block_size=24;
8
8
show table status like "t1";
9
 
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
10
 
t1      MEMORY  0       DEFAULT 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
9
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
10
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
11
11
insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789');
12
12
select * from t1;
13
13
a       b       c       d
56
56
7       7       0123    NULL
57
57
8       8       0123    NULL
58
58
show table status like "t1";
59
 
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
60
 
t1      MEMORY  0       DEFAULT 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
59
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
60
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
61
61
alter table t1 block_size = 0;
62
62
show table status like "t1";
63
 
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
64
 
t1      MEMORY  0       DEFAULT 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
63
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
64
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
65
65
alter table t1 row_format = dynamic;
66
66
show table status like "t1";
67
 
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
68
 
t1      MEMORY  0       DYNAMIC 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
67
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
68
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
69
69
alter table t1 block_size = 128;
70
70
show table status like "t1";
71
 
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
72
 
t1      MEMORY  0       DYNAMIC 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
71
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
72
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
73
73
select * from t1;
74
74
a       b       c       d
75
75
1       1       012     NULL
88
88
insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
89
89
ERROR 23000: Duplicate entry '100000' for key 'PRIMARY'
90
90
show table status like "t1";
91
 
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
92
 
t1      MEMORY  0       DYNAMIC 0       0       0       0       0       0       0       0       0       0       utf8_general_ci 0               
 
91
Session Schema  Name    Type    Engine  Version Rows    Avg_row_length  Table_size      Auto_increment
 
92
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
93
93
select count(*) from t1;
94
94
count(*)
95
95
10002