]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- add a topological rule here to place PARTITIONS after PARTITION_BY,
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Feb 2014 22:00:37 +0000 (17:00 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Feb 2014 22:00:37 +0000 (17:00 -0500)
for output consistency within the tests as well as in practice

lib/sqlalchemy/dialects/mysql/base.py

index 0880c5efa879e4a67774d0f6ed2eff165990d432..ba6e7b62587fc7901316803387f386e1438262a3 100644 (file)
@@ -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: