summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-06-27 19:25:35 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-06-27 19:25:35 -0400
commit668991a7ed3a46e29ab76cd0278b021e5190b103 (patch)
treeb15a912e26af60a5f5134c94baffa560b1915276 /lib/sqlalchemy/sql/operators.py
parent63dbed1fd7421fd4f5cbf0bb2773f7faa8359651 (diff)
downloadsqlalchemy-668991a7ed3a46e29ab76cd0278b021e5190b103.tar.gz
- 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
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r--lib/sqlalchemy/sql/operators.py4
1 files changed, 4 insertions, 0 deletions
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_])