Browse files

[1.2.X] Updated an old workaround described in the Oracle backend not…

…es with more modern advice.

Backport of r14637 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
ikelly committed Nov 20, 2010
1 parent b199cb3 commit 84d809d8228cde8b4a1f7c566b3915678629c7b6
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/ref/databases.txt
@@ -650,9 +650,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:

0 comments on commit 84d809d

Please sign in to comment.