From 8c5214d9b4f53e540f061b10193e04fbb0acfd07 Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Fri, 14 Sep 2007 23:23:55 +0000 Subject: [PATCH] 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 --- django/db/backends/oracle/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)