~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/mix1.inc

Cleaned up a few global tests which aren't happy now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#
27
27
 
28
28
eval SET SESSION STORAGE_ENGINE = $engine_type;
29
 
SET @orig_lock_wait_timeout= @@innodb_lock_wait_timeout; 
30
 
SET GLOBAL innodb_lock_wait_timeout=2;
31
 
 
32
29
 
33
30
--disable_warnings
34
31
drop table if exists t1,t2,t3,t1m,t1i,t2m,t2i,t4;
317
314
 
318
315
DELETE IGNORE FROM t1 WHERE i = 1;
319
316
 
320
 
SELECT * FROM t1 CROSS JOIN t2;
 
317
SELECT * FROM t1, t2;
321
318
 
322
319
DROP TABLE t2, t1;
323
320
 
408
405
EXPLAIN SELECT DISTINCT t1.name, t1.dept FROM t1 WHERE t1.name='rs5';
409
406
SELECT DISTINCT t1.name, t1.dept FROM t1 WHERE t1.name='rs5';
410
407
DELETE FROM t1;
411
 
--replace_column 9 #
412
408
EXPLAIN SELECT DISTINCT t1.name, t1.dept FROM t1 WHERE t1.name='rs5';
413
409
SELECT DISTINCT t1.name, t1.dept FROM t1 WHERE t1.name='rs5';
414
410
 
545
541
# Bug #28652: assert when alter innodb table operation
546
542
#
547
543
create table t1(a int) engine=innodb;
548
 
alter table t1 comment='123';
 
544
alter table t1 comment '123';
549
545
show create table t1;
550
546
drop table t1;
551
547
 
653
649
CREATE TABLE t2 (a int, b int, primary key (a));
654
650
BEGIN;
655
651
INSERT INTO t2 values(100,100);
656
 
COMMIT;
657
652
--error ER_DUP_ENTRY
658
653
CREATE TABLE IF NOT EXISTS t2 (primary key (a)) select * from t1;
659
654
SELECT * from t2;
862
857
--echo
863
858
 
864
859
SELECT table_schema, table_name, row_format
865
 
FROM data_dictionary.TABLES
 
860
FROM INFORMATION_SCHEMA.TABLES
866
861
WHERE table_schema = DATABASE() AND table_name = 't1';
867
862
 
868
863
--echo
874
869
--echo
875
870
 
876
871
SELECT table_schema, table_name, row_format
877
 
FROM data_dictionary.TABLES
 
872
FROM INFORMATION_SCHEMA.TABLES
878
873
WHERE table_schema = DATABASE() AND table_name = 't1';
879
874
 
880
875
--echo
916
911
set global innodb_autoextend_increment=8;
917
912
set global innodb_autoextend_increment=@my_innodb_autoextend_increment;
918
913
 
919
 
# BUG: 
920
 
# set @my_innodb_commit_concurrency=@@global.innodb_commit_concurrency;
921
 
# set global innodb_commit_concurrency=0;
922
 
# set global innodb_commit_concurrency=@my_innodb_commit_concurrency;
 
914
set @my_innodb_commit_concurrency=@@global.innodb_commit_concurrency;
 
915
set global innodb_commit_concurrency=0;
 
916
set global innodb_commit_concurrency=@my_innodb_commit_concurrency;
923
917
 
924
918
--echo End of 5.0 tests
925
919
 
984
978
insert into t1(f1) values(1);
985
979
--replace_column 1 #
986
980
select @a:=f2 from t1;
 
981
--sleep 5
987
982
update t1 set f1=1;
988
983
--replace_column 1 #
989
984
select @b:=f2 from t1;
990
985
select if(@a=@b,"ok","wrong");
 
986
--sleep 5
991
987
insert into t1(f1) values (1) on duplicate key update f1="1";
992
988
--replace_column 1 #
993
989
select @b:=f2 from t1;
994
990
select if(@a=@b,"ok","wrong");
 
991
--sleep 5
995
992
insert into t1(f1) select f1 from t1 on duplicate key update f1="1";
996
993
--replace_column 1 #
997
994
select @b:=f2 from t1;
1036
1033
#             auto_increment keys
1037
1034
#
1038
1035
create table t1 (a int auto_increment primary key) engine=innodb;
1039
 
--error ER_UNKNOWN_ERROR
 
1036
--error 1105
1040
1037
alter table t1 order by a;
1041
1038
drop table t1;
1042
1039
 
1097
1094
DROP TABLE t2;
1098
1095
DROP TABLE t1;
1099
1096
 
1100
 
SET GLOBAL innodb_lock_wait_timeout=@orig_lock_wait_timeout ;
1101
 
 
1102
1097
--echo End of 5.1 tests