2006-08-16 14:58:49 +02:00
|
|
|
# t/innodb_mysql.test
|
2006-05-16 11:16:23 +02:00
|
|
|
#
|
2006-08-16 14:58:49 +02:00
|
|
|
# Last update:
|
|
|
|
# 2006-07-26 ML test refactored (MySQL 5.1)
|
|
|
|
# main testing code t/innodb_mysql.test -> include/mix1.inc
|
2006-05-16 11:16:23 +02:00
|
|
|
#
|
2006-05-22 16:10:53 +03:00
|
|
|
|
2006-08-16 14:58:49 +02:00
|
|
|
-- source include/have_innodb.inc
|
|
|
|
let $engine_type= InnoDB;
|
|
|
|
let $other_engine_type= MEMORY;
|
2006-09-18 16:55:56 +02:00
|
|
|
# InnoDB does support FOREIGN KEYFOREIGN KEYs
|
|
|
|
let $test_foreign_keys= 1;
|
2007-10-08 20:57:37 +02:00
|
|
|
set global innodb_support_xa=default;
|
|
|
|
set session innodb_support_xa=default;
|
2006-08-16 14:58:49 +02:00
|
|
|
--source include/mix1.inc
|
2008-05-07 09:58:21 +04:00
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t1, t2, t3;
|
|
|
|
--enable_warnings
|
|
|
|
#
|
|
|
|
# BUG#35850: Performance regression in 5.1.23/5.1.24
|
|
|
|
#
|
|
|
|
create table t1(a int);
|
|
|
|
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
|
|
|
create table t2 (a int, b int, pk int, key(a,b), primary key(pk)) engine=innodb;
|
|
|
|
insert into t2 select @a:=A.a+10*(B.a + 10*C.a),@a, @a from t1 A, t1 B, t1 C;
|
|
|
|
--echo this must use key 'a', not PRIMARY:
|
|
|
|
--replace_column 9 #
|
|
|
|
explain select a from t2 where a=b;
|
|
|
|
drop table t1, t2;
|
|
|
|
|