Re: [CDBI] Fwd: find_or_create() barfs with constraints

[prev] [thread] [next] [Date index for 2005/08/03]

From: Peter Speltz
Subject: Re: [CDBI] Fwd: find_or_create() barfs with constraints
Date: 01:24 on 03 Aug 2005
On 8/2/05, Aaron Turner <aturner@xxxxxxxxxx.xxx> wrote:
>=20
> I'm looking to insert a record in table if it doesn't already exist.
> I've also created a unique key (across two columns) to prevent other
> access not via Class::DBI from causing problems.
>=20
> The issue seems however that when I do a Object->find_or_create
> ({ col1 =3D> 'value', col2 =3D> 'value'}) I get an error when it
> apparently tries to insert a duplicate record.
>=20

whats the error?  Are you sure it is the MK causing problem. It is
weird that it would not find your row.


--
pjs

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

Re: [CDBI] Fwd: find_or_create() barfs with constraints
Peter Speltz 01:24 on 03 Aug 2005

Generated at 09:40 on 09 Aug 2005 by mariachi v0.52