~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/tests/t/innodb_mysql.test

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
let $test_foreign_keys= 1;
13
13
set global innodb_support_xa=default;
14
14
--source include/mix1.inc
 
15
 
 
16
--echo #
 
17
--echo # Test for bug #39932 "create table fails if column for FK is in different
 
18
--echo #                      case than in corr index".
 
19
--echo #
 
20
--disable_warnings
 
21
drop tables if exists t1, t2;
 
22
--enable_warnings
 
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;
 
30
show create table t2;
 
31
drop table t2, t1;
 
32
--echo #
 
33
--echo # Bug#55826: create table .. select crashes with when KILL_BAD_DATA 
 
34
--echo #  is returned
 
35
--echo #
 
36
 
 
37
CREATE TABLE t1(a INT) ENGINE=innodb;
 
38
INSERT INTO t1 VALUES (0);
 
39
--error ER_TRUNCATED_WRONG_VALUE
 
40
CREATE TABLE t2 
 
41
  SELECT LEAST((SELECT '' FROM t1),NOW()) FROM `t1`;
 
42
DROP TABLE IF EXISTS t1,t2;