Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed last_executed_query test failure on Oracle

  • Loading branch information...
commit c0a4894dca4bda0053a56cd677c80340a68c4c95 1 parent dab9217
shaib authored July 08, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/backends/oracle/base.py
2  django/db/backends/oracle/base.py
@@ -269,7 +269,7 @@ def last_executed_query(self, cursor, sql, params):
269 269
         # http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.statement
270 270
         # The DB API definition does not define this attribute.
271 271
         statement = cursor.statement
272  
-        if not six.PY3 and not isinstance(statement, unicode):
  272
+        if statement and not six.PY3 and not isinstance(statement, unicode):
273 273
             statement = statement.decode('utf-8')
274 274
         # Unlike Psycopg's `query` and MySQLdb`'s `_last_executed`, CxOracle's
275 275
         # `statement` doesn't contain the query parameters. refs #20010.

0 notes on commit c0a4894

Please sign in to comment.
Something went wrong with that request. Please try again.