11
11
# InnoDB does support FOREIGN KEYFOREIGN KEYs
12
12
let $test_foreign_keys= 1;
13
13
set global innodb_support_xa=default;
14
set session innodb_support_xa=default;
14
15
--source include/mix1.inc
17
--echo # Test for bug #39932 "create table fails if column for FK is in different
18
--echo # case than in corr index".
21
drop tables if exists t1, t2;
23
create table t1 (pk int primary key) engine=InnoDB;
24
--echo # Even although the below statement uses uppercased field names in
25
--echo # foreign key definition it still should be able to find explicitly
26
--echo # created supporting index. So it should succeed and should not
27
--echo # create any additional supporting indexes.
28
create table t2 (fk int, key x (fk),
29
constraint x foreign key (FK) references t1 (PK)) engine=InnoDB;
33
--echo # Bug#55826: create table .. select crashes with when KILL_BAD_DATA
37
CREATE TABLE t1(a INT) ENGINE=innodb;
38
INSERT INTO t1 VALUES (0);
39
--error ER_TRUNCATED_WRONG_VALUE
41
SELECT LEAST((SELECT '' FROM t1),NOW()) FROM `t1`;
42
DROP TABLE IF EXISTS t1,t2;