@@ -738,7 +738,7 @@ Table Create Table
738
738
t2 CREATE TABLE `t2` (
739
739
`C2` int(11) DEFAULT NULL,
740
740
KEY `c2` (`C2`),
741
- CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`c2 `) REFERENCES `t1` (`c1 `)
741
+ CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`C2 `) REFERENCES `t1` (`C1 `)
742
742
) ENGINE=InnoDB DEFAULT CHARSET=latin1
743
743
ALTER TABLE t1 CHANGE COLUMN C1 c5 INT;
744
744
ALTER TABLE t2 CHANGE COLUMN C2 c6 INT;
@@ -785,7 +785,7 @@ SELECT C.NAME FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS C INNER JOIN
785
785
INFORMATION_SCHEMA.INNODB_SYS_TABLES T ON C.TABLE_ID=T.TABLE_ID
786
786
WHERE T.NAME='test/t1';
787
787
NAME
788
- a
788
+ A
789
789
b
790
790
DROP TABLE t1;
791
791
# different FOREIGN KEY cases
@@ -842,27 +842,27 @@ t2 CREATE TABLE `t2` (
842
842
KEY `bb` (`BB`),
843
843
KEY `CC` (`CC`),
844
844
KEY `DD` (`DD`),
845
- CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `),
846
- CONSTRAINT `t2_ibfk_2` FOREIGN KEY (`bb `) REFERENCES `t1` (`b `),
847
- CONSTRAINT `t2_ibfk_3` FOREIGN KEY (`cc `) REFERENCES `t1` (`c `),
848
- CONSTRAINT `t2_ibfk_4` FOREIGN KEY (`dd `) REFERENCES `t1` (`d `)
845
+ CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `),
846
+ CONSTRAINT `t2_ibfk_2` FOREIGN KEY (`BB `) REFERENCES `t1` (`B `),
847
+ CONSTRAINT `t2_ibfk_3` FOREIGN KEY (`CC `) REFERENCES `t1` (`C `),
848
+ CONSTRAINT `t2_ibfk_4` FOREIGN KEY (`DD `) REFERENCES `t1` (`D `)
849
849
) ENGINE=InnoDB DEFAULT CHARSET=latin1
850
850
DELETE FROM t1 WHERE a=1;
851
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
851
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
852
852
DELETE FROM t1 WHERE A=1;
853
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
853
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
854
854
DELETE FROM t1 WHERE b=1;
855
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
855
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
856
856
DELETE FROM t1 WHERE B=1;
857
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
857
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
858
858
DELETE FROM t1 WHERE c=1;
859
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
859
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
860
860
DELETE FROM t1 WHERE C=1;
861
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
861
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
862
862
DELETE FROM t1 WHERE d=1;
863
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
863
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
864
864
DELETE FROM t1 WHERE D=1;
865
- ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`aa `) REFERENCES `t1` (`a `))
865
+ ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t2`, CONSTRAINT `t2_ibfk_1` FOREIGN KEY (`AA `) REFERENCES `t1` (`A `))
866
866
DROP TABLE t2, t1;
867
867
# virtual columns case too
868
868
CREATE TABLE t1 (a INT, b INT GENERATED ALWAYS AS (a) VIRTUAL) ENGINE = InnoDB;
@@ -877,7 +877,7 @@ SELECT C.NAME FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS C INNER JOIN
877
877
INFORMATION_SCHEMA.INNODB_SYS_TABLES T ON C.TABLE_ID=T.TABLE_ID
878
878
WHERE T.NAME='test/t1';
879
879
NAME
880
- a
880
+ A
881
881
b
882
882
DROP TABLE t1;
883
883
# and an MDEV-18041 regression related to indexes prefixes
0 commit comments