diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2009-03-05 20:22:54 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2009-03-05 20:22:54 +0000 |
| commit | de442c3ab69e4b982694591384b7114c65f16dc6 (patch) | |
| tree | 7b4e226b23a3de613def10bcc9bf443d174ca782 /docs/ref | |
| parent | 79f53b4f206f82847b645e36263e3537ebbae7b1 (diff) | |
[1.0.X] Clarified documentation regarding Oracle's treatment of nulls and empty strings. Backport of [9976] from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/databases.txt | 13 | ||||
| -rw-r--r-- | docs/ref/models/fields.txt | 4 |
2 files changed, 9 insertions, 8 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 342d932f7f..acb152df68 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -442,12 +442,13 @@ characters of the truncated name with a repeatable MD5 hash value. NULL and empty strings ---------------------- -Django generally prefers to use the empty string ('') rather than NULL, but -Oracle treats both identically. To get around this, the Oracle backend -coerces the ``null=True`` option on fields that permit the empty string as a -value. When fetching from the database, it is assumed that a NULL value in -one of these fields really means the empty string, and the data is silently -converted to reflect this assumption. +Django generally prefers to use the empty string ('') rather than +NULL, but Oracle treats both identically. To get around this, the +Oracle backend coerces the ``null=True`` option on fields that have +the empty string as a possible value. When fetching from the database, +it is assumed that a NULL value in one of these fields really means +the empty string, and the data is silently converted to reflect this +assumption. ``TextField`` limitations ------------------------- diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 63018f6611..4643837841 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -54,8 +54,8 @@ string, not ``NULL``. .. note:: When using the Oracle database backend, the ``null=True`` option will be - coerced for string-based fields that can blank, and the value ``NULL`` will - be stored to denote the empty string. + coerced for string-based fields that have the empty string as a possible + value, and the value ``NULL`` will be stored to denote the empty string. ``blank`` --------- |
