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') >>>> > 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? > > Thanks > > sandro > *:-) > >
Hi sandro, did you want to compare compiled qry or its result? Gla -- +------------------------------------------------------------+ Glauco Uri glauco(at)sferacarta.com Sfera Carta Software® info(at)sferacarta.com Via Bazzanese,69 Casalecchio di Reno(BO) - Tel. 051591054 +------------------------------------------------------------+ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---