diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index 2d51d24..7539074 100644
a
|
b
|
Oracle database backend for Django.
|
3 | 3 | |
4 | 4 | Requires cx_Oracle: http://cx-oracle.sourceforge.net/ |
5 | 5 | """ |
6 | | from __future__ import unicode_literals |
| 6 | #from __future__ import unicode_literals # unicode_literals break things on Oracle 10 and 11.1 |
7 | 7 | |
8 | 8 | import decimal |
9 | 9 | import re |
… |
… |
WHEN (new.%(col_name)s IS NULL)
|
219 | 219 | # string instead of null, but only if the field accepts the |
220 | 220 | # empty string. |
221 | 221 | if value is None and field and field.empty_strings_allowed: |
222 | | value = '' |
| 222 | value = six.text_type('') # conversion needed here because of lacking unicode_literals on python2 |
223 | 223 | # Convert 1 or 0 to True or False |
224 | 224 | elif value in (1, 0) and field and field.get_internal_type() in ('BooleanField', 'NullBooleanField'): |
225 | 225 | value = bool(value) |