Bug #25056 | FOREIGN_KEY_CHECKS | ||
---|---|---|---|
Submitted: | 14 Dec 2006 0:31 | Modified: | 7 Feb 2007 16:39 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S1 (Critical) |
Version: | 5.0.24a-community-nt/4.1/5.1 | OS: | Windows (xp) |
Assigned to: | MC Brown | CPU Architecture: | Any |
[14 Dec 2006 0:31]
[ name withheld ]
[14 Dec 2006 17:01]
MySQL Verification Team
Thank you for the bug report. FOREIGN_KEY_CHECKS = 1 does not cause the server to scan all InnoDB tables verifying FK relationships. That option is intended for special cases when the loading data is known is valid. So I am verifying as documentation issue.
[3 Jan 2007 14:10]
MC Brown
The documentation has been updated to note that enabling FOREIGN_KEY_CHECKS does scan existing table data.
[3 Jan 2007 22:04]
[ name withheld ]
I'm sorry for opening this again, but i'm not sure the comment by MC Brown is correct: > [3 Jan 15:10] MC Brown > The documentation has been updated to note that enabling > FOREIGN_KEY_CHECKS does scan existing table data. The point was (as verified by MSolorzano): > Miguel Solorzano > > FOREIGN_KEY_CHECKS = 1 does _not_ cause the > server to scan all InnoDB tables verifying FK relationships ta, jack
[3 Jan 2007 22:18]
MySQL Verification Team
Thank you for the feedback.
[4 Jan 2007 5:10]
MC Brown
I made a typo in my original comment; to clarify, I added the following paragraph to the manual: Setting FOREIGN_KEY_CHECKS to 1 does not trigger a scan of the existing table data. Therefore, rows added to the table while FOREIGN_KEY_CHECKS=0 will not be verified for consistency. I believe this addresses the original point that FOREIGN_KEY_CHECKS is not a checking mechanism for rows already added to the DB.
[7 Feb 2007 16:39]
MC Brown
Closing, as I've rechecked that the changes to the documentation describe the original concern.