Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made Oracle backend cast CharField values of None to u'' instead of ''

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8c5214d9b4f53e540f061b10193e04fbb0acfd07 1 parent 92e55fe
@ikelly ikelly authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/oracle/base.py
View
2  django/db/backends/oracle/base.py
@@ -290,7 +290,7 @@ def resolve_columns(self, row, fields=()):
# string instead of null, but only if the field accepts the
# empty string.
if value is None and isinstance(field, Field) and field.empty_strings_allowed:
- value = ''
+ value = u''
# Convert 1 or 0 to True or False
elif value in (1, 0) and isinstance(field, (BooleanField, NullBooleanField)):
value = bool(value)
Please sign in to comment.
Something went wrong with that request. Please try again.