~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/innodb.result

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

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   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
 
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           
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   Unique  Key_name        Seq_in_index    Column_name
211
 
t1      FALSE   skr     1       a
 
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           
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");
273
273
rollback to savepoint `my_savepoint`;
274
274
ERROR 42000: SAVEPOINT my_savepoint does not exist
275
275
rollback to savepoint savept2;
 
276
ERROR 42000: SAVEPOINT savept2 does not exist
276
277
insert into t1 values (8);
277
278
savepoint sv;
278
279
commit;
394
395
CREATE TABLE t1 (a int not null, b int not null,c int not null,
395
396
key(a),primary key(a,b), unique(c),key(a),unique(b));
396
397
show index from t1;
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
 
398
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
 
399
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
 
400
t1      0       PRIMARY 2       b       A       #       NULL    NULL            BTREE           
 
401
t1      0       c       1       c       A       #       NULL    NULL            BTREE           
 
402
t1      0       b       1       b       A       #       NULL    NULL            BTREE           
 
403
t1      1       a       1       a       A       #       NULL    NULL            BTREE           
 
404
t1      1       a_2     1       a       A       #       NULL    NULL            BTREE           
404
405
drop table t1;
405
406
create table t1 (col1 int not null, col2 char(4) not null, primary key(col1));
406
407
alter table t1 engine=innodb;
732
733
hello   1
733
734
alter table t1 engine=innodb;
734
735
show keys from t1;
735
 
Table   Unique  Key_name        Seq_in_index    Column_name
736
 
t1      TRUE    PRIMARY 1       a
 
736
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
 
737
t1      0       PRIMARY 1       a       A       #       NULL    NULL            BTREE           
737
738
drop table t1;
738
739
create table t1 (i int, j int ) ENGINE=innodb;
739
740
insert into t1 values (1,2);
883
884
drop table t1;
884
885
create table t1 (t int not null default 1, key (t)) engine=innodb;
885
886
desc t1;
886
 
Field   Type    Null    Default Default_is_NULL On_Update
887
 
t       INTEGER FALSE   1       FALSE   
 
887
Field   Type    Null    Key     Default Extra
 
888
t       int     NO      MUL     1       
888
889
drop table t1;
889
890
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
891
BEGIN;
1130
1131
checksum table t1, t2, t3, t4;
1131
1132
Table   Checksum
1132
1133
test.t1 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
 
1134
test.t2 2948697075
 
1135
test.t3 2948697075
 
1136
test.t4 NULL
 
1137
Warnings:
 
1138
Error   1146    Table 'test.t4' doesn't exist
 
1139
checksum table t1, t2, t3, t4;
 
1140
Table   Checksum
 
1141
test.t1 2948697075
 
1142
test.t2 2948697075
 
1143
test.t3 2948697075
 
1144
test.t4 NULL
 
1145
Warnings:
 
1146
Error   1146    Table 'test.t4' doesn't exist
 
1147
checksum table t1, t2, t3, t4;
 
1148
Table   Checksum
 
1149
test.t1 2948697075
 
1150
test.t2 2948697075
 
1151
test.t3 2948697075
1151
1152
test.t4 NULL
1152
1153
Warnings:
1153
1154
Error   1146    Table 'test.t4' doesn't exist
1428
1429
count(*)
1429
1430
1
1430
1431
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
1451
1432
show variables like "innodb_sync_spin_loops";
1452
1433
Variable_name   Value
1453
1434
innodb_sync_spin_loops  30
2736
2717
INSERT INTO t2 VALUES (1);
2737
2718
ALTER TABLE t2 ADD FOREIGN KEY (a) REFERENCES t1 (a) ON DELETE SET NULL;
2738
2719
ALTER TABLE t2 MODIFY a INT NOT NULL;
2739
 
ERROR HY000: Error on rename of '#sql-temporary' to 'test.t2' (errno: 150)
 
2720
ERROR HY000: Error on rename of '#sql-temporary' to './test/t2' (errno: 150)
2740
2721
DELETE FROM t1;
2741
2722
DROP TABLE t2,t1;
2742
2723
CREATE TABLE t1 (a VARCHAR(5) COLLATE utf8_unicode_ci PRIMARY KEY)