summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-04-19 18:49:58 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-04-19 18:49:58 -0400
commit7303b59b00ef0f6f9332dd0362084e092c5d5acc (patch)
treea981d23bd38d8213d610a277f665af8fa50c4365 /lib/sqlalchemy/sql/operators.py
parentc33d0378802abbc729de55ba205a4309e5d68f6b (diff)
downloadsqlalchemy-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.py2
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):