minor update

This commit is contained in:
Miroslav Stampar 2011-03-25 22:08:54 +00:00
parent c9baa0094b
commit ae12dee990

View File

@ -1213,7 +1213,7 @@ class Enumeration:
"""
retVal = value
if isinstance(value, basestring) and not re.match(r"\A[A-Za-z0-9_]+\Z", value):
if Backend.getIdentifiedDbms() == DBMS.MYSQL:
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS):
retVal = "`%s`" % value
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE, DBMS.PGSQL):
retVal = "\"%s\"" % value