From dfb2e62c6c01d299d955b0927b849b23cc391782 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 13 Sep 2012 21:04:45 -0500 Subject: [PATCH] tables and field names should be allowed to start in a number, thanks Adi --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index f232f8ea..7808b1ad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-13 17:48:15) stable +Version 2.0.9 (2012-09-13 21:04:42) stable diff --git a/gluon/dal.py b/gluon/dal.py index 83fce76e..2344a15b 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -242,7 +242,7 @@ REGEX_SEARCH_PATTERN = re.compile('^{[^\.]+\.[^\.]+(\.(lt|gt|le|ge|eq|ne|contain REGEX_SQUARE_BRACKETS = re.compile('^.+\[.+\]$') REGEX_STORE_PATTERN = re.compile('\.(?P\w{1,5})$') REGEX_QUOTES = re.compile("'[^']*'") -REGEX_ALPHANUMERIC = re.compile('^[a-zA-Z]\w*$') +REGEX_ALPHANUMERIC = re.compile('^[0-9a-zA-Z]\w*$') # list of drivers will be built on the fly # and lists only what is available