summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-17 19:35:55 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-17 19:35:55 -0500
commitcd6e5d6dea83d5d5317765f14b15641fdf54ecc0 (patch)
tree5ad07ffc142d6b91fae24032bc4eba900d6218b4 /lib
parent7026ffe57c76821af3f1d5d01721e4035dc82de9 (diff)
downloadsqlalchemy-cd6e5d6dea83d5d5317765f14b15641fdf54ecc0.tar.gz
- [bug] fixed regexp that filters out warnings
for non-reflected "PARTITION" directives, thanks to George Reilly [ticket:2376]
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 7b0a72dff..b6982c6c3 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.