| Bug #34455 | Ambiguous foreign keys syntax is accepted | ||
|---|---|---|---|
| Submitted: | 11 Feb 2008 12:51 | Modified: | 20 Mar 2008 19:48 |
| Reporter: | Dmitri Lenev | ||
| Status: | Closed | ||
| Category: | Server: Parser | Severity: | S3 (Non-critical) |
| Version: | 4.1, 5.0, 5.1 | OS: | Any |
| Assigned to: | Marc Alff | Target Version: | |
| Triage: | D2 (Serious) / R3 (Medium) / E2 (Low) | ||
[11 Feb 2008 12:51]
Dmitri Lenev
[13 Feb 2008 19:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/42234 ChangeSet@1.2551, 2008-02-13 11:05:36-07:00, malff@lambda.hsd1.co.comcast.net. +4 -0 Bug#34455 (Ambiguous foreign keys syntax is accepted) Before this fix, the parser would accept illegal syntaxes in a FOREIGN KEY clause. In particular, the following was accepted: - multiple MATCH clauses - multiple ON DELETE clauses - multiple ON UPDATE clauses - MATCH clauses specified after ON UPDATE or ON DELETE In case of multiple redundant clauses, this leads to confusion, and implementation dependent results (last one wins). With this fix, these illegal syntaxes are now properly rejected.
[3 Mar 2008 19:19]
Bugs System
Pushed into 6.0.5-alpha
[20 Mar 2008 19:48]
Paul DuBois
Noted in 6.0.5 changelog.
