diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2010-11-20 01:11:34 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2010-11-20 01:11:34 +0000 |
| commit | 58eca97e71742f1b735851938c443fdab7555db9 (patch) | |
| tree | d342296f69274fd6dccb3bc3d0abcdc03c458afe /docs/ref/databases.txt | |
| parent | 61a89f8e1b382510e4dc3a5ffe293c1a5d232afc (diff) | |
Updated an old workaround described in the Oracle backend notes with more modern advice.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/databases.txt')
| -rw-r--r-- | docs/ref/databases.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 78c97c9133..3aa78ef647 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -669,9 +669,9 @@ some limitations on the usage of such LOB columns in general: * LOB columns may not be used in a ``SELECT DISTINCT`` list. This means that attempting to use the ``QuerySet.distinct`` method on a model that includes ``TextField`` columns will result in an error when run against - Oracle. A workaround to this is to keep ``TextField`` columns out of any - models that you foresee performing ``distinct()`` queries on, and to - include the ``TextField`` in a related model instead. + Oracle. As a workaround, use the ``QuerySet.defer`` method in conjunction + with ``distinct()`` to prevent ``TextField`` columns from being included in + the ``SELECT DISTINCT`` list. .. _third-party-notes: |
