2010/9/30 Michael Bayer <mike...@zzzcomputing.com>: > this is a bug , created at http://www.sqlalchemy.org/trac/ticket/1935 , and a > patch which fixes this issue is there. will try to get this committed > soon.
Thanks, patch fix issue. >> I try to update counter for omr object ang got following: >> >> Traceback (most recent call last): >> File "/home/vugluskr/tmp/z/sa.py", line 56, in <module> >> main() >> File "/home/vugluskr/tmp/z/sa.py", line 52, in main >> q2.update({data.cnt: data.cnt + 1}) >> File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/query.py", >> line 2184, in update >> difference(to_evaluate)) >> File "/usr/lib/python2.6/site-packages/sqlalchemy/orm/state.py", >> line 257, in expire_attributes >> impl = self.manager[key].impl >> KeyError: 'counter' >> >> Tests script and full output in attaches. >> >> Maybe I going wrong way and SA have more simpler way awailable to make >> query like: >> update tbl set counter = counter + 1 where ... -- 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.