diff options
| author | Shai Berger <shai@platonix.com> | 2013-07-08 23:47:02 +0300 |
|---|---|---|
| committer | Shai Berger <shai@platonix.com> | 2013-07-08 23:47:02 +0300 |
| commit | c0a4894dca4bda0053a56cd677c80340a68c4c95 (patch) | |
| tree | 51b278947c2ed3252cc5cd0f282b68437b8de5b4 | |
| parent | dab921751d6410d9d1efcbad1819acea435dbd43 (diff) | |
Fixed last_executed_query test failure on Oracle
| -rw-r--r-- | django/db/backends/oracle/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 04e70cfdb8..2d51d24b58 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -269,7 +269,7 @@ WHEN (new.%(col_name)s IS NULL) # 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. |
