summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/expression.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-22 16:14:58 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-22 16:14:58 -0400
commit1ceda8c23c277fd68bc159962f276d20cfa7bbf1 (patch)
tree438967fd83e543786556bc401f09b1c926cc89c2 /lib/sqlalchemy/sql/expression.py
parent03cb8ce548a99b97852c25f2fec26ed611afbb5c (diff)
downloadsqlalchemy-1ceda8c23c277fd68bc159962f276d20cfa7bbf1.tar.gz
- [bug] Added missing operators is_(), isnot()
to the ColumnOperators base, so that these long-available operators are present as methods like all the other operators. [ticket:2544]
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
-rw-r--r--lib/sqlalchemy/sql/expression.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py
index 6b8010601..50f8061a6 100644
--- a/lib/sqlalchemy/sql/expression.py
+++ b/lib/sqlalchemy/sql/expression.py
@@ -2105,6 +2105,8 @@ class _DefaultColumnComparator(operators.ColumnOperators):
"nullsfirst_op": (_scalar, nullsfirst),
"nullslast_op": (_scalar, nullslast),
"in_op": (_in_impl, operators.notin_op),
+ "is_": (_boolean_compare, operators.is_),
+ "isnot": (_boolean_compare, operators.isnot),
"collate": (_collate_impl,),
"match_op": (_match_impl,),
"distinct_op": (_distinct_impl,),