From: jonathan vanasco Date: Sat, 14 Mar 2020 12:27:43 +0000 (-0400) Subject: updated doc string to show `NOT (EXISTS` instead of `NOT EXISTS`, as … X-Git-Tag: rel_1_4_0b1~458^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4dfc449839f011db5b84f9a8dbf80896d34f4204;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git updated doc string to show `NOT (EXISTS` instead of `NOT EXISTS`, as … …that is what SqlAlchemy now renders. SqlAlchemy currently renders `NOT (EXISTS` not `NOT EXISTS`. This fixes the example SQL. ### Description The change is a docstring only. ### Checklist This pull request is: - [x] A documentation / typographical error fix - Good to go, no issue or tests are needed - [ ] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #` in the commit message - please include tests. **Have a nice day!** Closes: #4593 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4593 Pull-request-sha: fef577313242a1f79feb18969118a8fbb93bb6e9 Change-Id: Iee826a1754d76c93c014b44374e0f9aeabb8d0b6 --- diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index f8437a00ff..227543485f 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -1285,8 +1285,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`