On Wednesday 17 December 2008 18:11:43 Michael Bayer wrote: > On Dec 17, 2008, at 5:35 AM, a...@svilendobrev.com wrote: > > i found some discrepancies which may or may not be a bug. > > When a many2many implicit assoc via secondary_table is setup with > > view_only=True: > > a) proploader.remote_side contains only the primaryjoin item > > (which is probably ok, i dont know what it's used for), so i have > > to dig secondary_synchronize_pairs > > > > b) the query(A).filter( A.m2mx.contains( someX)) > > produces > > ...WHERE ... AND "mmt_B_h_2_X_1".right_id = "X".db_id > > instead of > > ...WHERE ... AND "mmt_B_g_2_X_1".right_id = ? > > > > is b) bug or intentional? > > if intentional, how i can do that ? > > I see "bug" plus no test case...... :) > > does the behavior change if you turn viewonly False ? without view_only all is fine. there is some mentioning of "relaxed checking" around the view_only option, so i wasn't sure what that means.
--~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
a.py
Description: application/python