On 24 Jun 2009, at 13:15, Felix Gilcher wrote: > Both of you, don't forget that there is a race-condition. Your > validator tests only that the name is unique at the exact moment > when you validate it. It might be taken a millisecond after that, > before you insert in in the database. So you should still place a > unique constraint on that database field and catch any resulting > errors.
I am now curious as to this race condition... If the uniqueness validation passes, but milliseconds later the field is no longer unique, Is there then a 'nice' way to go back to a 'failed validation' state based on what happens within the model code? Michal. _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
