Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

boulder-oracle-sprint: Fixed #4440.

  • Loading branch information...
commit bc8d41974dfd8097e6296c9706883306d8dd013a 1 parent a62ee77
Boulder Sprinters authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/backends/oracle/base.py
4 django/db/backends/oracle/base.py
View
@@ -461,7 +461,7 @@ def _get_sql_clause(self, get_full_query=False):
def resolve_columns(self, row, fields=()):
from django.db.models.fields import DateField, DateTimeField, \
- TimeField, BooleanField, NullBooleanField, DecimalField
+ TimeField, BooleanField, NullBooleanField, DecimalField, Field
values = []
for value, field in map(None, row, fields):
if isinstance(value, Database.LOB):
@@ -470,7 +470,7 @@ def resolve_columns(self, row, fields=()):
# order to adhere to the Django convention of using the empty
# string instead of null, but only if the field accepts the
# empty string.
- if value is None and field.empty_strings_allowed:
+ if value is None and isinstance(field, Field) and field.empty_strings_allowed:
value = ''
# Convert 1 or 0 to True or False
elif value in (1, 0) and isinstance(field, (BooleanField, NullBooleanField)):
Please sign in to comment.
Something went wrong with that request. Please try again.