From: jonathan vanasco Date: Thu, 4 Apr 2019 17:06:26 +0000 (-0400) Subject: updated doc string to show `NOT (EXISTS` instead of `NOT EXISTS`, as that is what... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef577313242a1f79feb18969118a8fbb93bb6e9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git updated doc string to show `NOT (EXISTS` instead of `NOT EXISTS`, as that is what SqlAlchemy now renders. --- diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index 6e3db9d718..232e1d2c3e 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -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`