Skip to content

Commit 6c83b8f

Browse files
committed
Fix test_order_by_success_case to accomodate scylla
Scylla does not support statement with opposite ordering direction for the same collumn: SELECT * FROM table ORDER BY a ASC, a DESC;
1 parent 05cbf94 commit 6c83b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/cqlengine/query/test_queryset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def test_order_by_success_case(self):
608608
for model, expect in zip(q, expected_order):
609609
assert model.attempt_id == expect
610610

611-
q = q.order_by('-attempt_id')
611+
q = q.order_by().order_by('-attempt_id')
612612
expected_order.reverse()
613613
for model, expect in zip(q, expected_order):
614614
assert model.attempt_id == expect

0 commit comments

Comments
 (0)