From 5a1f733a438abb10a2b9c3f970f6c95906d14914 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 25 Mar 2011 21:49:20 +0000 Subject: [PATCH] minor update (_ is part of normal identificator naming) --- plugins/generic/enumeration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 782682aff..2b1bd37fc 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -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