| Bug #1132 | Create table fails when certain table name structure | ||
|---|---|---|---|
| Submitted: | 25 Aug 2003 4:47 | Modified: | 28 Aug 2003 2:52 |
| Reporter: | [ name withheld ] | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
| Version: | Ver 8.40 Distrib 4.0.12, for pc-linux | OS: | Linux (Red Hat Linux 9.0) |
| Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[25 Aug 2003 4:47]
[ name withheld ]
[28 Aug 2003 2:52]
Jani Tolonen
MySQL supports some table names that start with a digit without need to
quote the name, but not in all cases. MySQL requires backticks around
table names that start with <digit>{e|E}<digit>[<string>], because this
is considered a number by MySQL. MeN is same as M * pow(10,N), which is
a shortened syntax for that, same as many pocket calculators use.
Since SQL standard requires backticks around table names that start with
a digit and since we don't want to make MySQL parser slower just to support
table names such as 123e456abc without quoting, backticks will be required
around the table name.
Example:
CREATE TABLE `1e1a` (i int);
will work.
Regards,
Jani
