Foreign Key's do not require unique constraint

Bug #664820 reported by Brian Aker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
New
Low
Unassigned

Bug Description

From the MySQL manual:
"Additionally, MySQL and InnoDB require that the referenced columns be indexed for performance. However, the system does not enforce a requirement that the referenced columns be UNIQUE or be declared NOT NULL. The handling of foreign key references to nonunique keys or keys that contain NULL values is not well defined for operations such as UPDATE or DELETE CASCADE. You are advised to use foreign keys that reference only UNIQUE and NOT NULL keys."

This is a bug, not a feature, that was never fixed. We should fix it.

Brian Aker (brianaker)
Changed in drizzle:
importance: Undecided → Low
Revision history for this message
Akash Sinha (sinha) wrote :

I would like to work on this thing..how should i start ?

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

Please see the documentation on contributing code at: http://docs.drizzle.org/contributing/code.html#code-label

If you have any questions please let us know.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.