Steve Zatz wrote: >> just change "table" to "join". > I tried that but got an Attribute Error that "Query' object has no > attribute > '__visit_name__' > > Asume I am doing something wrong by using the query object as the first > argument but not sure what to use.
use query.statement to get at the SQL expression > > Also, what is the second argument in visitors.traverse(). [It was missing > in the most recent example but apparently an empty dictionary is fine.] just an empty dict. it's contents have meaning in some cases but is not generally necessary. it would be preferable if the API didn't stick that boilerplate right in the middle of the function like that but that's sort of how it is for now. > > Steve > >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---