From: Mike Bayer Date: Wed, 18 Jan 2012 00:35:55 +0000 (-0500) Subject: - [bug] fixed regexp that filters out warnings X-Git-Tag: rel_0_7_5~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd6e5d6dea83d5d5317765f14b15641fdf54ecc0;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - [bug] fixed regexp that filters out warnings for non-reflected "PARTITION" directives, thanks to George Reilly [ticket:2376] --- diff --git a/CHANGES b/CHANGES index beac4243cd..5df9001990 100644 --- 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 diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index 7b0a72dff4..b6982c6c3d 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -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.