Re: [sqlalchemy] AttributeError (_inserted_primary_key) when retrieving ids of 'bulk insert'

2011-06-07 Thread Michael Bayer
On Jun 7, 2011, at 6:03 AM, Felix Wolfsteller wrote: > Hi, > > I try to insert a big number of of rows to a table and want to receive the > ids > that were assigned to these (new) rows. > If i insert a single row, it works as expected, but with multiple rows I run > into an error: > Attribute

[sqlalchemy] AttributeError (_inserted_primary_key) when retrieving ids of 'bulk insert'

2011-06-07 Thread Felix Wolfsteller
Hi, I try to insert a big number of of rows to a table and want to receive the ids that were assigned to these (new) rows. If i insert a single row, it works as expected, but with multiple rows I run into an error: AttributeError: 'DefaultExecutionContext' object has no attribute '_inserted_pri