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.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 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.