On 01/18/2011 10:47 PM, Eric Lemoine wrote:
On Tuesday, January 18, 2011, Eric Lemoine<eric.lemo...@camptocamp.com>  wrote:
Hi

Probably a very simple question. I use the ORM for inserts, with
postgres 8.3. How can I get the ids resulting from my inserts'
RETURNING clauses? I haven't been able to find the information in the
doc.
Doing just_inserted_obj.id causes a "SELECT ... WHERE id=" query,
which I'd like to avoid.
Hey there,
i am just guessing a little bit...
maybe you need to set the following?

sessionmaker(expire_on_commit=False)

--

Greetings
Jan Müller

--
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.

Reply via email to