Hi, > trying to do simultaneous inserts of data that might be identical.
Could you use the MERGE statement? http://www.h2database.com/html/grammar.html#merge > The logic is generally: > 1. Lookup for row with tuple, > If found, return id You should probably do a SELECT ... FOR UPDATE here. Unfortunately it locks the whole table, not just the selected record. > when the unique constraint violation > happens it occasionally cannot locate the id. I'm not sure what you mean here... Should H2 know the id? Your code should know the id. Regards, Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
