[sqlalchemy] Re: query doctest

2008-12-01 Thread Glauco
sandro dentella ha scritto: Hi, in a doctest I have:: str(q) == str(query.filter(User.first_name == 'ed')) True that works but the following fails, (both where built starting from the same session.query(User) q == query.filter(User.first_name == 'ed')

[sqlalchemy] Re: query doctest

2008-12-01 Thread Alessandro Dentella
in another place comparing str fails just because a join has ON join condition inverted (but semantically equivalent). What's the correct way to test if two queries are semantically equivalent? Thanks sandro *:-) Hi sandro, did you want to compare

[sqlalchemy] Re: query doctest

2008-11-29 Thread Michael Bayer
On Nov 29, 2008, at 6:22 AM, sandro dentella wrote: Hi, in a doctest I have:: str(q) == str(query.filter(User.first_name == 'ed')) True that works but the following fails, (both where built starting from the same session.query(User) q == query.filter(User.first_name == 'ed') True