Documentation bug? select + filter ()

Issue #2546 resolved
Former user created an issue

http://docs.sqlalchemy.org/en/rel_0_7/orm/query.html#sqlalchemy.orm.query.Query.join

has the following example:

addresses_q = select([Address.user_id](Address.user_id)).\
                filter(Address.email_address.endswith("@bar.com")).\
                alias()

IIRC, .filter() only works with Query() objects, not with selectables. Should that be a .where() instead?

Comments (5)

  1. Log in to comment