]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
updated doc string to show `NOT (EXISTS` instead of `NOT EXISTS`, as that is what... 4593/head
authorjonathan vanasco <jonathan@2xlp.com>
Thu, 4 Apr 2019 17:06:26 +0000 (13:06 -0400)
committerjonathan vanasco <jonathan@2xlp.com>
Thu, 4 Apr 2019 17:06:26 +0000 (13:06 -0400)
lib/sqlalchemy/orm/relationships.py

index 6e3db9d718a0a2874bbd37dfd7f6fab26679633c..232e1d2c3e80ceb796c0b4cf6093ad0caca55ee3 100644 (file)
@@ -1210,8 +1210,8 @@ class RelationshipProperty(StrategizedProperty):
             will produce::
 
                 SELECT * FROM my_table WHERE
-                NOT EXISTS (SELECT 1 FROM related WHERE
-                related.my_id=my_table.id)
+                NOT (EXISTS (SELECT 1 FROM related WHERE
+                related.my_id=my_table.id))
 
             :meth:`~.RelationshipProperty.Comparator.any` is only
             valid for collections, i.e. a :func:`.relationship`