diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2007-09-14 23:23:55 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2007-09-14 23:23:55 +0000 |
| commit | 8c5214d9b4f53e540f061b10193e04fbb0acfd07 (patch) | |
| tree | b39a227bd911a0bd16c73c95988ff42d601e71e9 | |
| parent | 92e55fe8b1ff5ed8867d9fe09b789cf493050623 (diff) | |
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
| -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 f9dd4f32ca..496fc26306 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -290,7 +290,7 @@ class DatabaseOperations(BaseDatabaseOperations): # 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) |
