Using desc() and distinct() together throws exception

Issue #848 resolved
Former user created an issue

A short test program follows that throws an exception unexpectedly. According to zzzeek, "yeah thats just a bug", and "line 915 of query.py needs to look more like line 873".

from elixir import *

class Foo(Entity): has_field('foo', Unicode(30))

metadata.bind = 'sqlite:///' setup_all(True) session.flush() session.clear()

print Foo.query.distinct() print Foo.query.order_by(Foo.c.foo.desc()) print Foo.query.distinct().order_by(Foo.c.foo.desc())

Comments (2)

  1. Log in to comment