]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- oracle requires GLOBAL here
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Feb 2016 00:34:29 +0000 (19:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Feb 2016 00:34:29 +0000 (19:34 -0500)
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/testing/suite/test_reflection.py

index dbaa23a5d0fe1854d8125210e068c11293a19f19..cc9a49a914751760d40ed2785bf9195dead23415 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",
index 4a3dd902404aaa0004ba5df1c45dd5480373a6cb..0457b2e26b89ba57cecc1faf83d13b766b281584 100644 (file)
@@ -113,7 +113,7 @@ class ComponentReflectionTest(fixtures.TablesTest):
         # temp table fixture
         if testing.against("oracle"):
             kw = {
-                'prefixes': ["TEMPORARY"],
+                'prefixes': ["TEMPORARY", "GLOBAL"],
                 'oracle_on_commit': 'PRESERVE ROWS'
             }
         else: