From a0fb9e74c61b0c2cb8f2f91ae6cc38d3c8c95949 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 19 Feb 2014 17:00:37 -0500 Subject: - add a topological rule here to place PARTITIONS after PARTITION_BY, for output consistency within the tests as well as in practice --- lib/sqlalchemy/dialects/mysql/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/mysql') diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index 0880c5efa..ba6e7b625 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -1681,7 +1681,8 @@ class MySQLDDLCompiler(compiler.DDLCompiler): for opt in topological.sort([ ('DEFAULT_CHARSET', 'COLLATE'), - ('DEFAULT_CHARACTER_SET', 'COLLATE') + ('DEFAULT_CHARACTER_SET', 'COLLATE'), + ('PARTITION_BY', 'PARTITIONS'), # only for test consistency ], opts): arg = opts[opt] if opt in _options_of_type_string: -- cgit v1.2.1