diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-02-08 10:14:36 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-02-08 10:14:36 -0500 |
commit | d1414ad20524c421aa78272c03dce5f839a0aab6 (patch) | |
tree | 3e1ce8014fe934a5cab201073076ca8b302623b8 /lib/sqlalchemy/sql/operators.py | |
parent | f39c43083a612fdb77dbb3eb2c297cde9662fe81 (diff) | |
download | sqlalchemy-d1414ad20524c421aa78272c03dce5f839a0aab6.tar.gz |
simplify remote annotation significantly, and also
catch the actual remote columns more accurately.
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 89f0aaee1..b86b50db4 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -521,6 +521,11 @@ def nullslast_op(a): _commutative = set([eq, ne, add, mul]) +_comparison = set([eq, ne, lt, gt, ge, le]) + +def is_comparison(op): + return op in _comparison + def is_commutative(op): return op in _commutative |