Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 84d809d8228cde8b4a1f7c566b3915678629c7b6 1 parent b199cb3
Ian Kelly authored November 20, 2010

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  docs/ref/databases.txt
6  docs/ref/databases.txt
@@ -650,9 +650,9 @@ some limitations on the usage of such LOB columns in general:
650 650
   * LOB columns may not be used in a ``SELECT DISTINCT`` list. This means that
651 651
     attempting to use the ``QuerySet.distinct`` method on a model that
652 652
     includes ``TextField`` columns will result in an error when run against
653  
-    Oracle. A workaround to this is to keep ``TextField`` columns out of any
654  
-    models that you foresee performing ``distinct()`` queries on, and to
655  
-    include the ``TextField`` in a related model instead.
  653
+    Oracle. As a workaround, use the ``QuerySet.defer`` method in conjunction
  654
+    with ``distinct()`` to prevent ``TextField`` columns from being included in
  655
+    the ``SELECT DISTINCT`` list.
656 656
 
657 657
 .. _third-party-notes:
658 658
 

0 notes on commit 84d809d

Please sign in to comment.
Something went wrong with that request. Please try again.