From 86c20e39eb9ea0bbd25889403d16d857748aff9b Mon Sep 17 00:00:00 2001 From: Anssi Kääriäinen Date: Wed, 13 Jun 2012 14:13:56 +0300 Subject: Fixed connection.queries encoding handling on Oracle In addition, removed a possibly problematic .filter() call from backends.test_query_encoding test. It is possible the .filter could cause collation problems on MySQL, and as it wasn't absolutely needed for the test it seemed better to get rid of the call. Refs #18461. --- django/db/backends/oracle/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 785e4b72a6..64e038e1a6 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -212,7 +212,7 @@ WHEN (new.%(col_name)s IS NULL) def last_executed_query(self, cursor, sql, params): # http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.statement # The DB API definition does not define this attribute. - return cursor.statement + return cursor.statement.decode("utf-8") def last_insert_id(self, cursor, table_name, pk_name): sq_name = self._get_sequence_name(table_name) -- cgit v1.3