diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-19 18:49:58 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-19 18:49:58 -0400 |
commit | 7303b59b00ef0f6f9332dd0362084e092c5d5acc (patch) | |
tree | a981d23bd38d8213d610a277f665af8fa50c4365 /lib/sqlalchemy/sql/operators.py | |
parent | c33d0378802abbc729de55ba205a4309e5d68f6b (diff) | |
download | sqlalchemy-7303b59b00ef0f6f9332dd0362084e092c5d5acc.tar.gz |
- The "primaryjoin" model has been stretched a bit further to allow
a join condition that is strictly from a single column to itself,
translated through some kind of SQL function or expression. This
is kind of experimental, but the first proof of concept is a
"materialized path" join condition where a path string is compared
to itself using "like". The :meth:`.Operators.like` operator has
also been added to the list of valid operators to use in a primaryjoin
condition. fixes #3029
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index bafe00979..402610fa5 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -782,7 +782,7 @@ def nullslast_op(a): _commutative = set([eq, ne, add, mul]) -_comparison = set([eq, ne, lt, gt, ge, le, between_op]) +_comparison = set([eq, ne, lt, gt, ge, le, between_op, like_op]) def is_comparison(op): |