Re: $obj->delete doesn't remove from the DB

[prev] [thread] [next] [Date index for 2004/06/19]

From: Yuval Kogman
Subject: Re: $obj->delete doesn't remove from the DB
Date: 21:32 on 19 Jun 2004
--4bRzO86E/ozDv8r1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 20, 2004 at 00:18:31 +0300, Yuval Kogman wrote:

> Is this really a good thing? Should there be some kind of mapping?
> Either way, sql_DeleteMe is generated so that the values returned by
> ->id are stringified

Oh, I forgot to mention that patching C::DBI.pm so that=20

- my @pk_values =3D $self->_attrs($self->primary_columns);
+ my @pk_values =3D map { ref $_ ? $_->id : $_ } $self->_attrs($self->prima=
ry_columns);

fixes it, but I've yet to see what damage it's caused ;-)

I promise this is the last spam of the day.

--=20
 ()  Yuval Kogman <nothingmuch@xxxxxxxx.xxx> 0xEBD27418  perl hacker &
 /\  kung foo master: Crackers, lick the furniture: neeyah!!!!!!!!!!!!!


--4bRzO86E/ozDv8r1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFA1LDwVCwRwOvSdBgRAoYhAJ9aXSO6sEtJTr/kFtCDc1SDsc8PQwCfRCFy
pcumVfsitbqDOhyAou0wdj8=
=9n3q
-----END PGP SIGNATURE-----

--4bRzO86E/ozDv8r1--

$obj->delete doesn't remove from the DB
Yuval Kogman 14:48 on 18 Jun 2004

Re: $obj->delete doesn't remove from the DB
William McKee 16:00 on 18 Jun 2004

Re: $obj->delete doesn't remove from the DB
Yuval Kogman 17:14 on 18 Jun 2004

Re: $obj->delete doesn't remove from the DB
Tony Bowden 16:41 on 18 Jun 2004

Re: $obj->delete doesn't remove from the DB
Yuval Kogman 17:19 on 18 Jun 2004

Re: $obj->delete doesn't remove from the DB
Yuval Kogman 20:59 on 19 Jun 2004

Re: $obj->delete doesn't remove from the DB
Yuval Kogman 21:18 on 19 Jun 2004

Re: $obj->delete doesn't remove from the DB
Yuval Kogman 21:32 on 19 Jun 2004

Re: $obj->delete doesn't remove from the DB
Tony Bowden 21:48 on 19 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52