Bug #89014 Foreign keys must match unique key degree exactly
| Submitted: | 21 Dec 2017 12:58 | Modified: | 22 Dec 2017 18:45 |
|---|---|---|---|
| Reporter: | Lukas Eder | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: DDL | Severity: | S4 (Feature request) |
| Version: | 8.0.2 | OS: | Windows (10) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | foreign key, SQL Standard, unique key | ||
[21 Dec 2017 12:58]
Lukas Eder
[21 Dec 2017 13:06]
Lukas Eder
For the record, the relevant clause in the latest ISO/IEC 9075-2:2016(E) chapter 11.8 <referential constraint definition> is Syntax Rules 11) The <referencing column list> shall contain the same number of <column name>s as the <referenced column list>. The i-th column identified in the <referencing column list> corresponds to the i-th column identified in the <referenced column list>...
[22 Dec 2017 16:02]
MySQL Verification Team
Hi! Thank you for your report. Currently, we are supporting the only valid SQL standard, which is SQL:2011. However, I agree that we should prepare for the future standards. Current behaviour will not be changed soon as it would break many existing applications. Still, this is a fully valid feature request, hence it is verified as such.
[22 Dec 2017 18:45]
Lukas Eder
I just quoted the latest version of the standard that I have in my file system. This part of the standard has always been exactly this way, see e.g. SQL-92: https://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.