diff --git a/setup.py b/setup.py index bac51a7..69374ce 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,7 @@ setup( ], install_requires=[ 'six', - 'SQLAlchemy>=0.9.3', + 'SQLAlchemy>=0.9.9', 'total_ordering>=0.1' if sys.version_info[0] == 2 and sys.version_info[1] < 7 else '', 'ordereddict>=1.1' diff --git a/tests/test_sort_query.py b/tests/test_sort_query.py index 31702eb..2f8332c 100644 --- a/tests/test_sort_query.py +++ b/tests/test_sort_query.py @@ -257,7 +257,7 @@ class TestSortQueryWithPolymorphicInheritance(TestCase): self.session.query(self.TextItem), 'item_count' ) - assert_contains('ORDER BY (SELECT count(:param_2) AS count_2', query) + assert_contains('ORDER BY (SELECT count(:param_2) AS count_1', query) def test_child_class_attribute(self): query = sort_query(