| Bug #830 | mysqldump creates SQL with errors | ||
|---|---|---|---|
| Submitted: | 10 Jul 2003 18:19 | Modified: | 11 Jul 2003 1:19 |
| Reporter: | Robert Allen | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | OS: | ||
| Assigned to: | CPU Architecture: | Any | |
[10 Jul 2003 18:19]
Robert Allen
[11 Jul 2003 1:19]
Sergei Golubchik
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 There is a function FIELD(). So, FIELD(15) is treated as a function call. To make it an identifier one has to put space before parenthesis: ALTER TABLE ... ADD KEY (FIELD (15)) it's how this key was probably created. As for mysqldump, there is an option--quote-names that you shouild use to solve your problem.
