Yeah my bad, the original query does indeed query for (Z.id, B.name). I had just changed it to A.name to get the printout for the "workaround" query and forgot to change it back before pasting here. If there's something I can do to contribute (not sure I'm qualified to write those tests), do tell.
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/lGxM13xQhu8J. 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.