Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed last_executed_query test failure on Oracle

  • Loading branch information...
commit c0a4894dca4bda0053a56cd677c80340a68c4c95 1 parent dab9217
Shai Berger shaib authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/oracle/base.py
2  django/db/backends/oracle/base.py
View
@@ -269,7 +269,7 @@ 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.
statement = cursor.statement
- if not six.PY3 and not isinstance(statement, unicode):
+ if statement and not six.PY3 and not isinstance(statement, unicode):
statement = statement.decode('utf-8')
# Unlike Psycopg's `query` and MySQLdb`'s `_last_executed`, CxOracle's
# `statement` doesn't contain the query parameters. refs #20010.
Please sign in to comment.
Something went wrong with that request. Please try again.