[sqlalchemy] update for polymorphic types

2011-09-15 Thread Wichert Akkerman
I am correct in assuming that update() does not work on polymorphic classes? I'm getting a ArgumentError: Only update via a single table query is currently supported error which seems to suggest that is the case. Wichert. -- You received this message because you are subscribed to the Google

Re: [sqlalchemy] update for polymorphic types

2011-09-15 Thread Michael Bayer
that is the case you'd need to emit UPDATE against each table individually might be nice to document, I guess On Sep 15, 2011, at 10:04 AM, Wichert Akkerman wrote: I am correct in assuming that update() does not work on polymorphic classes? I'm getting a ArgumentError: Only

Re: [sqlalchemy] update for polymorphic types

2011-09-15 Thread Wichert Akkerman
On 09/15/2011 04:13 PM, Michael Bayer wrote: that is the case you'd need to emit UPDATE against each table individually I tried that quickly but still got the same error. My model looks like this (the full thing is at

Re: [sqlalchemy] update for polymorphic types

2011-09-15 Thread Michael Bayer
On Sep 15, 2011, at 10:29 AM, Wichert Akkerman wrote: On 09/15/2011 04:13 PM, Michael Bayer wrote: that is the case you'd need to emit UPDATE against each table individually I tried that quickly but still got the same error. My model looks like this (the full thing is at