Re: [sqlalchemy] 0.6 Beta 3: specifying bindparams in update()

2010-04-12 Thread Michael Bayer
Michael Bayer wrote: > I will add further detail to the error message. the new message is: CompileError: bindparam() name 'x' is reserved for automatic usage in the VALUES or SET clause of this insert/update statement. Please use a name other than column name when using bindparam() with insert(

Re: [sqlalchemy] 0.6 Beta 3: specifying bindparams in update()

2010-04-12 Thread Michael Bayer
Jeff Peck wrote: > I recently tried out 0.6 beta 3, and I noticed that the following > construct is no longer allowed using the sql expression language: > > def update_foos(connection, foo_items): > update = foo_table.update( > foo_table.c.id == bindparam('id'), > values = { 'co

[sqlalchemy] 0.6 Beta 3: specifying bindparams in update()

2010-04-12 Thread Jeff Peck
I recently tried out 0.6 beta 3, and I noticed that the following construct is no longer allowed using the sql expression language: def update_foos(connection, foo_items): update = foo_table.update( foo_table.c.id == bindparam('id'), values = { 'column_1' : bindparam('column_1'