Bug #16128 | Can't create a Father-Son casdaded primary key | ||
---|---|---|---|
Submitted: | 2 Jan 2006 15:26 | Modified: | 2 Jan 2006 15:47 |
Reporter: | Andre Pires | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.15 | OS: | Windows (Windows XP SP2) |
Assigned to: | CPU Architecture: | Any |
[2 Jan 2006 15:26]
Andre Pires
[2 Jan 2006 15:47]
Andre Pires
Sorry... not a Bug but I discover that in order to the ALTER TABLE command to function correctly both fields in the parent and son table must be identical in type, size and extra info, and only the father can be auto_incremented. That info is not clear in the documentation and the error message does not help into finding the error source... At least change the error code and message in order to help developers to find the correct origin of the error... Thanks.