From 7303b59b00ef0f6f9332dd0362084e092c5d5acc Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 19 Apr 2014 18:49:58 -0400 Subject: - 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 --- lib/sqlalchemy/sql/operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/operators.py') 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): -- cgit v1.2.1