From 668991a7ed3a46e29ab76cd0278b021e5190b103 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 27 Jun 2011 19:25:35 -0400 Subject: - Fixed subtle bug that caused SQL to blow up if: column_property() against subquery + joinedload + LIMIT + order by the column property() occurred. [ticket:2188]. Also in 0.6.9 --- lib/sqlalchemy/sql/operators.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/sqlalchemy/sql/operators.py') diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index dcea5a0f6..db6c40e9a 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -524,6 +524,10 @@ _commutative = set([eq, ne, add, mul]) def is_commutative(op): return op in _commutative +def is_ordering_modifier(op): + return op in (asc_op, desc_op, + nullsfirst_op, nullslast_op) + _associative = _commutative.union([concat_op, and_, or_]) -- cgit v1.2.1