Bug #1725 foreign key field having a blank character
Submitted: 31 Oct 2003 6:28 Modified: 29 Jan 2004 8:27
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S2 (Serious)
Version:4.0.16 OS:Linux (Linux)
Assigned to: Heikki Tuuri CPU Architecture:Any

[31 Oct 2003 6:28] [ name withheld ]
Description:
Trying to add a foreign key where the field name in the foreign table contains a blank character, even when enclosing the field name with backquotes, produces an error 1005.

Thanks.

Marc Delisle

How to repeat:
ALTER TABLE persons ADD FOREIGN KEY (`town_code`) REFERENCES `towns`(`town code`)
[31 Oct 2003 10:51] Dean Ellis
Behaviour verified using current 4.0.17 BitKeeper sources.

Thank you
[29 Jan 2004 8:27] Michael Widenius
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Fix will be in 4.0.18 and 4.1.2