Skip to content

to_sql : MySQL identifier cannot be entirely numeric #10255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jorisvandenbossche opened this issue Jun 3, 2015 · 1 comment
Closed

to_sql : MySQL identifier cannot be entirely numeric #10255

jorisvandenbossche opened this issue Jun 3, 2015 · 1 comment
Labels
IO SQL to_sql, read_sql, read_sql_query
Milestone

Comments

@jorisvandenbossche
Copy link
Member

Reported at StackOverflow: http://stackoverflow.com/questions/30586292/valueerror-mysql-identifier-cannot-be-entirely-numeric-with-pandas-to-sql

MySQL supports numeric identifiers (if quoted) (http://dev.mysql.com/doc/refman/5.0/en/identifiers.html)
@artemyk Was there a reason we explicitely disallowed this? (https://github.com/pydata/pandas/blob/v0.16.1/pandas/io/sql.py#L1287)

@jorisvandenbossche jorisvandenbossche added the IO SQL to_sql, read_sql, read_sql_query label Jun 3, 2015
@artemyk
Copy link
Contributor

artemyk commented Jun 3, 2015

@jorisvandenbossche Whoops! I saw the following : "Identifiers may begin with a digit but unless quoted may not consist solely of digits" but did not pay attention to the "unless quoted". Submitting a PR now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO SQL to_sql, read_sql, read_sql_query
Projects
None yet
Development

No branches or pull requests

2 participants