Bug #24983 | Spaces on a primary key column name cause a select query to fail | ||
---|---|---|---|
Submitted: | 11 Dec 2006 23:28 | Modified: | 12 Dec 2006 1:02 |
Reporter: | Antonio Tapia | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Query Browser | Severity: | S3 (Non-critical) |
Version: | 1.2.6 beta | OS: | Windows (Windows XP Pro) |
Assigned to: | CPU Architecture: | Any |
[11 Dec 2006 23:28]
Antonio Tapia
[11 Dec 2006 23:31]
Antonio Tapia
I proof-read it!! I really did... but here is an immediate correction to the create-table syntax (pretty obvious)... create table B ( `a` varchar(20), `Test Space` varchar(20) primary key, `b` varchar(20) );
[11 Dec 2006 23:34]
Antonio Tapia
..<sigh>... I forgot to mention that the selects do work by using a subquery. Thus, where "SELECT a from B" will fail, this will work: SELECT * FROM ( SELECT a FROM B ) t
[12 Dec 2006 0:09]
MySQL Verification Team
Thank you for the bug report. Duplicate of bug http://bugs.mysql.com/bug.php?id=24789