[Dbix-class] find_or_create duplicate entry errors

Matt S Trout dbix-class at trout.me.uk
Sun Jun 17 20:12:44 GMT 2007


On Sun, Jun 17, 2007 at 11:07:58AM -0700, Jason Konrad wrote:
> I've been seeing this error which I thought should never happen due to the
> attempt to find by the key before creating a new record.
> 
> "DBIx::Class::ResultSet::find_or_create(): Error executing 'INSERT INTO
> recipients (ciphered_email, domain, hashed_email_id) VALUES (?, ?, ?)':
> Duplicate entry '1500' for key 2

Race condition maybe?

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Dbix-class mailing list