From bfdb51ac6a4b889db7797c8176d1baf8a1c59436 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 19 Feb 2014 17:00:37 -0500 Subject: [PATCH] - 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(-) diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index 028111b9ff..d53b1c174e 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -1629,7 +1629,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: -- 2.47.3