diff options
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
-rw-r--r-- | lib/sqlalchemy/ansisql.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py index 82abb9577..78017bc91 100644 --- a/lib/sqlalchemy/ansisql.py +++ b/lib/sqlalchemy/ansisql.py @@ -606,7 +606,10 @@ class ANSISchemaGenerator(engine.SchemaIterator): raise NotImplementedError() def visit_table(self, table): - self.append("\nCREATE TABLE " + table.fullname + "(") + # the single whitespace before the "(" is significant + # as its MySQL's method of indicating a table name and not a reserved word. + # feel free to localize this logic to the mysql module + self.append("\nCREATE TABLE " + table.fullname + " (") separator = "\n" |