summaryrefslogtreecommitdiff
path: root/tests/regressiontests/datatypes
diff options
context:
space:
mode:
authorIan Kelly <ian.g.kelly@gmail.com>2009-03-13 19:57:00 +0000
committerIan Kelly <ian.g.kelly@gmail.com>2009-03-13 19:57:00 +0000
commit0ae95f80b4030b6ad716838f45da45b9c34e612a (patch)
tree70698210233fde9e6b6a88d5f792b5b63a1929ad /tests/regressiontests/datatypes
parentf7256582990652c3a18fb784eb7360c47f9fb154 (diff)
Fixed #10238: coerce TextField values to unicode in the oracle backend.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10049 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/datatypes')
-rw-r--r--tests/regressiontests/datatypes/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regressiontests/datatypes/models.py b/tests/regressiontests/datatypes/models.py
index 7e76d6a669..0ad809a45d 100644
--- a/tests/regressiontests/datatypes/models.py
+++ b/tests/regressiontests/datatypes/models.py
@@ -13,6 +13,7 @@ class Donut(models.Model):
baked_date = models.DateField(null=True)
baked_time = models.TimeField(null=True)
consumed_at = models.DateTimeField(null=True)
+ review = models.TextField()
class Meta:
ordering = ('consumed_at',)
@@ -82,6 +83,12 @@ datetime.datetime(2007, 4, 20, 16, 19, 59)
>>> Donut.objects.filter(consumed_at__year=2008)
[]
+# Regression test for #10238: TextField values returned from the database
+# should be unicode.
+>>> d2 = Donut.objects.create(name=u'Jelly Donut', review=u'Outstanding')
+>>> Donut.objects.get(id=d2.id).review
+u'Outstanding'
+
"""}
# Regression test for #8354: the MySQL backend should raise an error if given