Bug #6188 | Clarified InnoDB error message during foreign key mismatches | ||
---|---|---|---|
Submitted: | 20 Oct 2004 22:24 | Modified: | 10 Nov 2004 9:37 |
Reporter: | Thomas Park | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S4 (Feature request) |
Version: | 4.1.5-gamma | OS: | Linux (Linux) |
Assigned to: | Bugs System | CPU Architecture: | Any |
[20 Oct 2004 22:24]
Thomas Park
[20 Oct 2004 22:30]
Thomas Park
Note that the "create" statements should specify "type = InnoDB". I apologize for the omission.
[20 Oct 2004 22:32]
Thomas Park
updated category
[20 Oct 2004 22:40]
Thomas Park
Ah, I located "perror" in the documentation. Please disregard this feature request. bash$ perror 150 Error code 150: Unknown error 150 150 = Foreign key constraint is incorrectly formed
[20 Oct 2004 23:01]
MySQL Verification Team
Thank you for the info.
[10 Nov 2004 9:37]
Marko Mäkelä
I'm assigning this to Jan Lindström. See also bug #3491. As a workaround, the latest foreign key error can be viewed by issuing the command SHOW INNODB STATUS\G
[15 Aug 2010 3:36]
J Ballard
A little late, yes, but I feel it is relevant. If it was not clear before, this error also arises if the referenced table is anything other than InnoDB. For instance, if you have a table FOO, which is innoDB, and you have a field FIELD with a foreign key referencing table BAR, and the table BAR is not innoDB, then an "errno:150" will arise as well.