dropbox / godropbox

Common libraries for writing Go services/applications.
BSD 3-Clause "New" or "Revised" License
4.17k stars 427 forks source link

Improve the valid Identifiers check #213

Closed des09 closed 7 years ago

des09 commented 7 years ago

Valid identifiers in mysql can start with a number:

`mysql> create database 9test; Query OK, 1 row affected (0.00 sec)

mysql> use 9test; Database changed mysql> create table 2table( 1col tinyint(1)); Query OK, 0 rows affected (0.05 sec) `

pattyshack commented 7 years ago

While it's true that mysql supports identifier beginning with numbers, the choice of disallowing numeric prefix was intentional (it does not interact well other orm).