From: Mike Bayer Date: Wed, 19 Feb 2014 22:00:37 +0000 (-0500) Subject: - add a topological rule here to place PARTITIONS after PARTITION_BY, X-Git-Tag: rel_0_8_5~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfdb51ac6a4b889db7797c8176d1baf8a1c59436;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add a topological rule here to place PARTITIONS after PARTITION_BY, for output consistency within the tests as well as in practice --- 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: