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 > > 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? I usually produce their results via all() or similar and compare those. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---