diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-08 22:01:52 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-08 22:10:42 -0500 |
commit | 1c9252b3a4f1e232e887a7a8bf21b29d449e3776 (patch) | |
tree | 8f3a3a92462c1bacb197a78da3a553cb04a9f351 /lib/sqlalchemy/testing/assertsql.py | |
parent | 7302f06596e0f14e3567788785fc16ecd3cdd9a8 (diff) | |
download | sqlalchemy-ticket_2685.tar.gz |
- inline get_effective_schema and preparer setup to get profilesticket_2685
back down
Diffstat (limited to 'lib/sqlalchemy/testing/assertsql.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertsql.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/assertsql.py b/lib/sqlalchemy/testing/assertsql.py index ade99b700..904149c16 100644 --- a/lib/sqlalchemy/testing/assertsql.py +++ b/lib/sqlalchemy/testing/assertsql.py @@ -89,14 +89,16 @@ class CompiledSQL(SQLMatchRule): compiled = \ context.compiled.statement.compile( dialect=compare_dialect, - schema_translate_map=context.compiled.schema_translate_map) + schema_translate_map=context. + compiled.preparer.schema_translate_map) else: compiled = ( context.compiled.statement.compile( dialect=compare_dialect, column_keys=context.compiled.column_keys, inline=context.compiled.inline, - schema_translate_map=context.compiled.schema_translate_map) + schema_translate_map=context. + compiled.preparer.schema_translate_map) ) _received_statement = re.sub(r'[\n\t]', '', util.text_type(compiled)) parameters = execute_observed.parameters |