diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-06-19 21:52:54 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-06-19 21:52:54 +0000 |
commit | ac56d17a7ea3b19cc5abb786a7cfa9a5b8f0e941 (patch) | |
tree | 8ff2a2d2deff9c6061ccb72098ef91bffb147848 /lib/sqlalchemy/ansisql.py | |
parent | 4445453a0cc1ca5e9f8095a4f8f3cf1371f91220 (diff) | |
download | sqlalchemy-ac56d17a7ea3b19cc5abb786a7cfa9a5b8f0e941.tar.gz |
single space for MySQL appeasement
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" |