minor update (_ is part of normal identificator naming)

This commit is contained in:
Miroslav Stampar 2011-03-25 21:49:20 +00:00
parent 1a98095a93
commit 5a1f733a43

View File

@ -1218,7 +1218,7 @@ class Enumeration:
Returns an safe representation of identificator name for MySQL
"""
retVal = value
if isinstance(value, basestring) and not re.match(r"\A[A-Za-z0-9]+\Z", value):
if isinstance(value, basestring) and not re.match(r"\A[A-Za-z0-9_]+\Z", value):
retVal = "`%s`" % value
return retVal