Looks like you are trying to mix ORM and SQL expression constructs.
Also, Insert() objects should be constructed via the insert() function.

Try this

conn = session.connection()   # get handle to the session's connection
t = conn.begin()
res = conn.execute(insert(t_table).values(id=None,pv=6))
print res.last_inserted_ids()
t.rollback()

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