Skip to content

Commit cb74758

Browse files
author
Artemy Kolchinsky
committed
BUG: Should allow numeric mysql table names
Allowing all numeric Cleanup
1 parent 676cb95 commit cb74758

File tree

2 files changed

+149
-142
lines changed

2 files changed

+149
-142
lines changed

pandas/io/sql.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,6 @@ def _get_valid_mysql_name(name):
12831283
if not re.match(basere, c):
12841284
if not (0x80 < ord(c) < 0xFFFF):
12851285
raise ValueError("Invalid MySQL identifier '%s'" % uname)
1286-
if not re.match(r'[^0-9]', uname):
1287-
raise ValueError('MySQL identifier cannot be entirely numeric')
12881286

12891287
return '`' + uname + '`'
12901288

0 commit comments

Comments
 (0)