]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- [bug] fixed regexp that filters out warnings
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jan 2012 00:35:55 +0000 (19:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Jan 2012 00:35:55 +0000 (19:35 -0500)
for non-reflected "PARTITION" directives,
thanks to George Reilly [ticket:2376]

CHANGES
lib/sqlalchemy/dialects/mysql/base.py

diff --git a/CHANGES b/CHANGES
index beac4243cd8772c0cf038afc8a1da776abf7fe09..5df90019907a460ecb6604e72db43f31cb5d6e10 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -47,6 +47,11 @@ CHANGES
     SQLite does not appear to support constraint
     naming in any case.
 
+- mysql
+  - [bug] fixed regexp that filters out warnings
+    for non-reflected "PARTITION" directives,
+    thanks to George Reilly [ticket:2376]
+
 - Py3K
   - [bug] Fixed inappropriate usage of util.py3k
     flag and renamed it to util.py3k_warning, since 
index 7b0a72dff40de426c77e952b5712170963d2e960..b6982c6c3dcf7f2e749e260e43f0f92a7c146fb5 100644 (file)
@@ -2559,9 +2559,7 @@ class MySQLTableDefinitionParser(object):
         # PARTITION
         #
         # punt!
-        self._re_partition = _re_compile(
-            r'  '
-            r'(?:SUB)?PARTITION')
+        self._re_partition = _re_compile(r'(?:.*)(?:SUB)?PARTITION(?:.*)')
 
         # Table-level options (COLLATE, ENGINE, etc.)
         # Do the string options first, since they have quoted strings we need to get rid of.