Bug #70102 | \ escaped comments make MySQL Server to silently ignore foreign keys creation | ||
---|---|---|---|
Submitted: | 21 Aug 2013 0:26 | Modified: | 21 Aug 2013 15:50 |
Reporter: | Vincent Courcelle | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.5.32 | OS: | Any (Tested Linux+Windows) |
Assigned to: | CPU Architecture: | Any | |
Tags: | comment, escape, foreign keys, innodb |
[21 Aug 2013 0:26]
Vincent Courcelle
[21 Aug 2013 5:27]
MySQL Verification Team
Testcase: set foreign_key_checks=0; drop table if exists t1,t2; drop view if exists t1,t2; create table t1(a bigint primary key)engine=innodb; show warnings; create table t2(a bigint comment 'it\'s a bug',foreign key(a) references b(a) on delete cascade)engine=innodb; show warnings; show create table t1; show create table t2;
[21 Aug 2013 5:30]
MySQL Verification Team
seems fixed in 5.5.33, please check it yourself. change log references http://bugs.mysql.com/bug.php?id=69062 also...
[21 Aug 2013 15:50]
Vincent Courcelle
Thanks Shane for your comments. I'm not sure bug #69062 has anything is related to this bug. I just upgraded my developer machine to 5.6.13 and the bug is not present anymore. I just see that my production schemes are all messed up because of this bug (my production server is running debian 7 which features 5.5.31 as current version). It's incredible to leave this buggy version of mysql server as the stable one!