~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/r/innodb.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:
166
166
1       1007    101
167
167
alter table t1 ENGINE=innodb;
168
168
show keys from t1;
169
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
170
 
t1      0       PRIMARY 1       id      A       #       NULL    NULL            BTREE           
171
 
t1      1       parent_id       1       parent_id       A       #       NULL    NULL            BTREE           
172
 
t1      1       level   1       level   A       #       NULL    NULL            BTREE           
 
169
Table   Unique  Key_name        Seq_in_index    Column_name
 
170
t1      TRUE    PRIMARY 1       id
 
171
t1      FALSE   parent_id       1       parent_id
 
172
t1      FALSE   level   1       level
173
173
drop table t1;
174
174
CREATE TABLE t1 (
175
175
gesuchnr int DEFAULT '0' NOT NULL,
207
207
Table   Op      Msg_type        Msg_text
208
208
test.t1 analyze status  OK
209
209
show keys from t1;
210
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
211
 
t1      1       skr     1       a       A       #       NULL    NULL    YES     BTREE           
 
210
Table   Unique  Key_name        Seq_in_index    Column_name
 
211
t1      FALSE   skr     1       a
212
212
drop table t1;
213
213
create table t1 (a int,b varchar(20),key(a)) engine=innodb;
214
214
insert into t1 values (1,""), (2,"testing");
394
394
CREATE TABLE t1 (a int not null, b int not null,c int not null,
395
395
key(a),primary key(a,b), unique(c),key(a),unique(b));
396
396
show index from t1;
397
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
398
 
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
399
 
t1      0       PRIMARY 2       b       A       #       NULL    NULL            BTREE           
400
 
t1      0       c       1       c       A       #       NULL    NULL            BTREE           
401
 
t1      0       b       1       b       A       #       NULL    NULL            BTREE           
402
 
t1      1       a       1       a       A       #       NULL    NULL            BTREE           
403
 
t1      1       a_2     1       a       A       #       NULL    NULL            BTREE           
 
397
Table   Unique  Key_name        Seq_in_index    Column_name
 
398
t1      TRUE    PRIMARY 1       a
 
399
t1      TRUE    PRIMARY 2       b
 
400
t1      TRUE    c       1       c
 
401
t1      TRUE    b       1       b
 
402
t1      FALSE   a       1       a
 
403
t1      FALSE   a_2     1       a
404
404
drop table t1;
405
405
create table t1 (col1 int not null, col2 char(4) not null, primary key(col1));
406
406
alter table t1 engine=innodb;
732
732
hello   1
733
733
alter table t1 engine=innodb;
734
734
show keys from t1;
735
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
736
 
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
 
735
Table   Unique  Key_name        Seq_in_index    Column_name
 
736
t1      TRUE    PRIMARY 1       a
737
737
drop table t1;
738
738
create table t1 (i int, j int ) ENGINE=innodb;
739
739
insert into t1 values (1,2);
883
883
drop table t1;
884
884
create table t1 (t int not null default 1, key (t)) engine=innodb;
885
885
desc t1;
886
 
Field   Type    Null    Key     Default Extra
887
 
t       int     NO      MUL     1       
 
886
Field   Type    Null    Default Default_is_NULL On_Update
 
887
t       INTEGER FALSE   1       FALSE   
888
888
drop table t1;
889
889
create table t1 (id int not null auto_increment, code int not null, name char(20) not null, primary key (id), key (code), unique (name)) engine=innodb;
890
890
BEGIN;
1130
1130
checksum table t1, t2, t3, t4;
1131
1131
Table   Checksum
1132
1132
test.t1 2948697075
1133
 
test.t2 2948697075
1134
 
test.t3 2948697075
1135
 
test.t4 NULL
1136
 
Warnings:
1137
 
Error   1146    Table 'test.t4' doesn't exist
1138
 
checksum table t1, t2, t3, t4;
1139
 
Table   Checksum
1140
 
test.t1 2948697075
1141
 
test.t2 2948697075
1142
 
test.t3 2948697075
1143
 
test.t4 NULL
1144
 
Warnings:
1145
 
Error   1146    Table 'test.t4' doesn't exist
1146
 
checksum table t1, t2, t3, t4;
1147
 
Table   Checksum
1148
 
test.t1 2948697075
1149
 
test.t2 2948697075
1150
 
test.t3 2948697075
 
1133
test.t2 3505595080
 
1134
test.t3 3505595080
 
1135
test.t4 NULL
 
1136
Warnings:
 
1137
Error   1146    Table 'test.t4' doesn't exist
 
1138
checksum table t1, t2, t3, t4;
 
1139
Table   Checksum
 
1140
test.t1 2948697075
 
1141
test.t2 3505595080
 
1142
test.t3 3505595080
 
1143
test.t4 NULL
 
1144
Warnings:
 
1145
Error   1146    Table 'test.t4' doesn't exist
 
1146
checksum table t1, t2, t3, t4;
 
1147
Table   Checksum
 
1148
test.t1 2948697075
 
1149
test.t2 3505595080
 
1150
test.t3 3505595080
1151
1151
test.t4 NULL
1152
1152
Warnings:
1153
1153
Error   1146    Table 'test.t4' doesn't exist
1428
1428
count(*)
1429
1429
1
1430
1430
drop table t1;
 
1431
show status like "Innodb_buffer_pool_pages_total";
 
1432
Variable_name   Value
 
1433
show status like "Innodb_page_size";
 
1434
Variable_name   Value
 
1435
show status like "Innodb_rows_deleted";
 
1436
Variable_name   Value
 
1437
show status like "Innodb_rows_inserted";
 
1438
Variable_name   Value
 
1439
show status like "Innodb_rows_updated";
 
1440
Variable_name   Value
 
1441
show status like "Innodb_row_lock_waits";
 
1442
Variable_name   Value
 
1443
show status like "Innodb_row_lock_current_waits";
 
1444
Variable_name   Value
 
1445
show status like "Innodb_row_lock_time";
 
1446
Variable_name   Value
 
1447
show status like "Innodb_row_lock_time_max";
 
1448
Variable_name   Value
 
1449
show status like "Innodb_row_lock_time_avg";
 
1450
Variable_name   Value
1431
1451
show variables like "innodb_sync_spin_loops";
1432
1452
Variable_name   Value
1433
1453
innodb_sync_spin_loops  30