RowProxy don't get sorted as expected
Issue #2848
resolved
If one uses raw queries like this:
res = list(session.execute("SELECT a,b FROM my_subscription"))
then we see (by printing) that res is [13209L), (1L, 7057L), (2L, 410L), (10L, 3L), (6L, 10L)]((0L,)
But these aren't tuples, so when we try to sort() that list (or use sorted() on it), records just get weirdly mixed up.
I guess RowProxy objects should have the same behaviour as tuples when it comes to sorting, or else they should display themselves as objects instead of tuples, to avoid confusing unexperienced users.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.9.0 (automated comment)
- Log in to comment
patch: