]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
doc update regarding with_lockmode, [ticket:2440]
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 May 2012 21:50:44 +0000 (17:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 May 2012 21:50:44 +0000 (17:50 -0400)
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/query.py

index 1c3554a5b93632750ac25ab1dba178d855ff2c8e..bc3523fe282ef09f82870e187682ec1075609a49 100644 (file)
@@ -404,12 +404,14 @@ def relationship(argument, secondary=None, **kwargs):
     :param innerjoin=False:
       when ``True``, joined eager loads will use an inner join to join
       against related tables instead of an outer join.  The purpose
-      of this option is strictly one of performance, as inner joins
-      generally perform better than outer joins.  This flag can
-      be set to ``True`` when the relationship references an object
-      via many-to-one using local foreign keys that are not nullable,
-      or when the reference is one-to-one or a collection that is 
-      guaranteed to have one or at least one entry.
+      of this option is generally one of performance, as inner joins
+      generally perform better than outer joins. Another reason can be
+      the use of ``with_lockmode``, which does not support outer joins.
+
+      This flag can be set to ``True`` when the relationship references an
+      object via many-to-one using local foreign keys that are not nullable,
+      or when the reference is one-to-one or a collection that is guaranteed
+      to have one or at least one entry.
 
     :param join_depth:
       when non-``None``, an integer value indicating how many levels
@@ -1692,4 +1694,4 @@ def undefer_group(name):
     return strategies.UndeferGroupOption(name)
 
 from sqlalchemy import util as _sa_util
-_sa_util.importlater.resolve_all()
\ No newline at end of file
+_sa_util.importlater.resolve_all()
index 103b0a7956766bb7eeda3734a4f38b0704a67da4..cedaad3effd21464e15edbaa80fdd220948e7dcb 100644 (file)
@@ -1095,7 +1095,7 @@ class Query(object):
 
             ``'update_nowait'`` - passes ``for_update='nowait'``, which
             translates to ``FOR UPDATE NOWAIT`` (supported by Oracle, 
-            PostgreSQL)
+            PostgreSQL 8.1 upwards)
 
             ``'read'`` - passes ``for_update='read'``, which translates to
             ``LOCK IN SHARE MODE`` (for MySQL), and ``FOR SHARE`` (for