Bug #53117 Difficulty in setting a foreign key
| Submitted: | 23 Apr 2010 15:15 | Modified: | 29 May 2010 13:13 |
|---|---|---|---|
| Reporter: | Joshua Levin | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Workbench: Modeling | Severity: | S3 (Non-critical) |
| Version: | 5.2.19 OSS Beta Rev. 5680 | OS: | Windows |
| Assigned to: | CPU Architecture: | Any |
[23 Apr 2010 15:15]
Joshua Levin
[23 Apr 2010 15:16]
Joshua Levin
"Foreign Keys" tab, showing single-entry pull-down
Attachment: WB-ScreenShot-2.jpg (image/jpeg, text), 32.23 KiB.
[23 Apr 2010 15:31]
Valeriy Kravchuk
Can you upload the .mwb file for this model or CREATE TABLE statements for the tables?
[23 Apr 2010 16:13]
Joshua Levin
Sorry, the .mwb file has some confidential information. No can do.
[24 Apr 2010 17:20]
Joshua Levin
The SQL queries to generate the PUBLICATIONS table is as follows (some comments have been removed for security reasons): CREATE TABLE IF NOT EXISTS `mydb`.`PUBLICATIONS` ( `PubID` INT NOT NULL , `PubName` VARCHAR(80) NULL , `PubAbbrev` VARCHAR(8) NULL , `PubAbbrevAlt` VARCHAR(8) NULL , `IssuesPerYear` SMALLINT(6) NULL , PRIMARY KEY (`PubID`) , INDEX `PubID` (`PubID` ASC) ) ENGINE = InnoDB COMMENT = 'List of Publications'
[26 Apr 2010 17:28]
Sveta Smirnova
Thank you for the feedback. What is the type of PubID field of ISSUES table?
[26 Apr 2010 19:03]
Joshua Levin
PubID is INT2
[26 Apr 2010 19:22]
Joshua Levin
Well, because of the question, I noticed that PubID was INT in the PUBLICATIONS table, and INT2 in the ISSUES table. I changed it to be INT in both places, and -- guess what -- the error is still there! It still says `IssuesPerYear`
[26 Apr 2010 20:13]
Sveta Smirnova
Thank you for the feedback. Please change it to INT(11) and inform us if this helps.
[26 Apr 2010 20:33]
Joshua Levin
I tried changing PubID to INT(1) in both places, and it did not help. I also tried INT(11) in both places, and it didn't help either.
[29 Apr 2010 13:13]
Susanne Ebrecht
Did you already try to drop the foreign key and re-create it?
[29 May 2010 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.