diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-28 20:12:43 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-28 20:12:43 +0000 |
commit | ac1f58795ad49d643ff2993245d7cf458a4caf5b (patch) | |
tree | c6d3b4dc98f1c2b9d3c0b5ff7f10d74bf7f8cd59 /lib/sqlalchemy/test/assertsql.py | |
parent | ba015e62cc1c688b11a7b8f916867f123a6fe206 (diff) | |
download | sqlalchemy-ac1f58795ad49d643ff2993245d7cf458a4caf5b.tar.gz |
- simplify the OurSQL dialect regarding py3k, this version gives it a fairly
fighting chance on python 3. there's an oursql bug where it can't raise
an exception on executemany() correctly.
- needed to add "plain_query" wrappers for all the reflection methods. not sure
why this was not needed earlier.
Diffstat (limited to 'lib/sqlalchemy/test/assertsql.py')
-rw-r--r-- | lib/sqlalchemy/test/assertsql.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/test/assertsql.py b/lib/sqlalchemy/test/assertsql.py index 6dbc95b78..1417c2e43 100644 --- a/lib/sqlalchemy/test/assertsql.py +++ b/lib/sqlalchemy/test/assertsql.py @@ -63,7 +63,7 @@ class ExactSQL(SQLMatchRule): if not context: return - _received_statement = _process_engine_statement(statement, context) + _received_statement = _process_engine_statement(context.unicode_statement, context) _received_parameters = context.compiled_parameters # TODO: remove this step once all unit tests @@ -101,7 +101,7 @@ class RegexSQL(SQLMatchRule): if not context: return - _received_statement = _process_engine_statement(statement, context) + _received_statement = _process_engine_statement(context.unicode_statement, context) _received_parameters = context.compiled_parameters equivalent = bool(self.regex.match(_received_statement)) |