You can inspect the rowcount attribute of the cursor object after you executed your update. rowcount returns the number of rows affected by your update, so it will be 1 if your where condition was true.
On Wed, Nov 11, 2009 at 10:04 AM, Continuation <selforgani...@gmail.com>wrote: > > > > Would something like > > > > UPDATE bid = new_bid WHERE id = id and bid < new_bid > > > > work for you? > > This is a great idea. > > One question is, how do I know whether bid has been updated to new_bid > or not (ie. how to tell whether the conditional test bid < new_bid is > true or not)? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---