diff options
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 0edcbc7bd..aee26a405 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -477,11 +477,12 @@ class MySQLSchemaGenerator(ansisql.ANSISchemaGenerator): return colspec def post_create_table(self, table): - mysql_engine = table.kwargs.get('mysql_engine', None) - if mysql_engine is not None: - return " TYPE=%s" % mysql_engine - else: - return "" + args = "" + for k in table.kwargs: + if k.startswith('mysql_'): + opt = k[6:] + args += " %s=%s" % (opt.upper(), table.kwargs[k]) + return args class MySQLSchemaDropper(ansisql.ANSISchemaDropper): def visit_index(self, index): |