]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- repair the fix just cherry-picked for ref #3644 as compiler.py wasn't
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Feb 2016 23:10:50 +0000 (18:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Feb 2016 23:10:50 +0000 (18:10 -0500)
present in the commit for master, having been inadvertently committed
on February 3.  Source of this line is c1316a299257fae8264c8038d83e415f4605fde7.

lib/sqlalchemy/sql/compiler.py

index 0a824b4666cc1a622e522697b26c049842acf5d9..722beb1ce9b2680b12860774eaf02b8914cdc14b 100644 (file)
@@ -53,7 +53,7 @@ LEGAL_CHARACTERS = re.compile(r'^[A-Z0-9_$]+$', re.I)
 ILLEGAL_INITIAL_CHARACTERS = set([str(x) for x in range(0, 10)]).union(['$'])
 
 BIND_PARAMS = re.compile(r'(?<![:\w\$\x5c]):([\w\$]+)(?![:\w\$])', re.UNICODE)
-BIND_PARAMS_ESC = re.compile(r'\x5c(:[\w\$]+)(?![:\w\$])', re.UNICODE)
+BIND_PARAMS_ESC = re.compile(r'\x5c(:[\w\$]*)(?![:\w\$])', re.UNICODE)
 
 BIND_TEMPLATES = {
     'pyformat': "%%(%(name)s)s",