On Jun 7, 2007, at 2:25 AM, Dmitry Zuikov wrote:
> > Hi, > >> the queries generated in 0.3.6 and 0.3.8 are identical except for an >> anonymous alias name. they are also both incorrect, and its only >> because 0.3.6 is less accurate about targeting Column objects in >> result sets that it "works". > > Are they incorrect because of how they constructed, or it's because > of SA's internal behaviour? as i said, a bug, fixed in 2708. > > There is also another point here - in fact, this mapper it's just a > view, > and seems that primary key is not very useful here, but I did not find > the > way to specify it. primary_key=[columns] all mappers require a primary key. views and other relations certainly can have candidate keys just like tables. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---