Bug #445 | Can't access columns named "check" in 4.0.12 | ||
---|---|---|---|
Submitted: | 17 May 2003 21:06 | Modified: | 18 May 2003 22:43 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S2 (Serious) |
Version: | 4.0.12 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[17 May 2003 21:06]
[ name withheld ]
[18 May 2003 22:43]
Alexander Keremidarski
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php CHECK is reserved word. In order to be used as column name reserved word has to be quoted with backticks. select `check` from temptable; Second query is wrong. MODIFY COLUMN can't change column name. Use CHANGE COLUMN instead. alter table temptable change column `check` check_no int; Same applies to all reserved words. http://www.mysql.com/doc/en/Reserved_words.html