Re: [sqlalchemy] session.execute w/ list of values instead of dict?

2011-06-23 Thread Michael Bayer
On Jun 23, 2011, at 5:08 PM, Wells Oliver wrote: > W/ psycopg2, you can do a cursor.execute(query, list) where list is an > actual python list of values : [1,2,3] > > W/ SQLAlchemy, it seems the session.execute(query, values) will only > accept a dictionary for values. Am I missing something? Ca

[sqlalchemy] session.execute w/ list of values instead of dict?

2011-06-23 Thread Wells Oliver
W/ psycopg2, you can do a cursor.execute(query, list) where list is an actual python list of values : [1,2,3] W/ SQLAlchemy, it seems the session.execute(query, values) will only accept a dictionary for values. Am I missing something? Can I pass a list instead? Thanks. -- You received this messa