| Bug #12930 | A Specific MySQL Error Message That Sucks (tm) | ||
|---|---|---|---|
| Submitted: | 1 Sep 2005 14:20 | Modified: | 1 Sep 2005 14:34 |
| Reporter: | Martin Olsson | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | mysql Ver 14.7 Distrib 4.1.12, for Win3 | OS: | Windows (Windows 2000) |
| Assigned to: | CPU Architecture: | Any | |
[1 Sep 2005 14:20]
Martin Olsson
[1 Sep 2005 14:21]
Martin Olsson
the SQL with the bad FOREIGN KEY yada REFERENCES yada
Attachment: sql.txt (text/plain), 1.09 KiB.
[1 Sep 2005 14:34]
MySQL Verification Team
Please use the perror tool for have the description of error messages: C:\mysql4110a\bin>perror 150 MySQL error: 150 = Foreign key constraint is incorrectly formed
[1 Sep 2005 14:47]
Martin Olsson
Great with a quick reply! Thanks Miguel. While the perror utility works great on my machine too (I just didn't know about it until now), this tool is no solution -- not even a short term one -- to the problems I described. I'm not saying you said that I just wanted to make my own point of view clear. Several questions remain: Why is there two, apparently valid, error codes involved here? And why can't MySQL just print a sane error message from the start? It just seems very odd to first print an incomprehesible error message and then forcing the user to launch a separate tool to just to obtain an understandable error message. Maybe you could get away with that in the 50ties while programming some obscure mainframe which required a phd to use, but hey it's 2005 and most people are not tight schedules. IMHO improving the quality of error messages, this one in particular but also MySQL error messages in general, would be a great way to advance the MySQL product line. Maybe you could hire some intern to work-though the error messages or something?
[24 Oct 2005 9:25]
Sergei Golubchik
Meanwhile, foreign key error weas changed to be more comprehensible
