diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-28 11:52:24 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-28 11:52:24 -0500 |
commit | 134d78c8b44c40102afb030e6284a9d1e6acb65a (patch) | |
tree | a51f5b94f569d438e84758883d84415edb164b0a /lib/sqlalchemy/sql/compiler.py | |
parent | ac5d11afb3fa601d3194bbe8c087c568608985fa (diff) | |
download | sqlalchemy-134d78c8b44c40102afb030e6284a9d1e6acb65a.tar.gz |
- post_process_text() is called for DDL() constructs, in particular allowing
'%' with only one level of escaping. Note this is backwards-incompatible
with previously triple-escaped sections. [ticket:1897]
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 8ca510e13..eb339cf1d 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -1129,7 +1129,7 @@ class DDLCompiler(engine.Compiled): context.setdefault('schema', sch) context.setdefault('fullname', preparer.format_table(ddl.target)) - return ddl.statement % context + return self.sql_compiler.post_process_text(ddl.statement % context) def visit_create_table(self, create): table = create.element |