Roy Hyunjin Han wrote:
>
> Yay!  I solved it.  Thanks for making such a great module.
>
>
>>> result =
>>> meta.Session.execute(model.names_table.insert(postgres_returning=[model.names_table.c.id]),
>>> [{'name': x} for x in names])
>
>>> result.fetchall()
> [(40,), (41,), (42,)]

this is not going to work consistently on different versions of psycopg2
as they will tell you its not (and will never be) supported.


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