On Jul 30, 2007, at 8:13 AM, Arun Kumar PG wrote:

> Guys,
>
> I am using SA with MySQL. I am trying to update a record by making  
> a call to session.update(obj). In response I am getting  
> "ConcurrentModificationError: Updated rowcount 0 does not match  
> number of objects updated 1"
>
> What are the possible reasons for this error?
>

the UPDATE statement issued fails to find any rows which match the  
expected criterion.  the "concurrent" part comes from the idea that  
some other process has already updated the row; however if the UPDATE  
statement isnt formed correctly, or if the "rowcount" function on  
your DBAPI is busted, that will do it too.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to