I've found a solution. meta.Session.execute returns RowProxy instead
of ResultProxy.

Example:

query = meta.engine.text("INSERT [...] VALUES(:text, :text1)")
result = query.execute(text="123", text1="123")

print result.lastrowid

On 16 сен, 16:18, Chris Withers <ch...@simplistix.co.uk> wrote:
> On 16/09/2010 11:49, phasma wrote:
>
> > session imported from Meta ? If use Meta.Session.execute it's returns
> > RowProxy, which has no lastrowid parameter.
>
> Try this:
>
> with meta.Session:
>      result = meta.Session.execute("INSERT statement")
>      print result.lastrowid
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>              -http://www.simplistix.co.uk

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@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