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: 20:59 on 19 Jun 2004
--GID0FwUMdk1T2AWN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jun 18, 2004 at 17:48:08 +0300, Yuval Kogman wrote:

> blah blah blah

Anyway, I think it's not my fault.

The $link object I was trying to delete has two has_a. When It's asked
to delete itself, the SQL being sent to the server has these fields,
which are the primary keys of the link table, matched against the
stringified value of the objects which the link has.

In my specific example I have a machine called saturn, on which Oracle
is installed, and I would like to say that's no longer the case, so I
look up the link where $saturn->id and $oracle->id are the primary key,
and i delete that link. DBI->trace says this is what happens:

 T  <- finish=3D 1 at ContextualFetch.pm line 88
      Binding parameters: DELETE
FROM   machine_has_db
WHERE  machine=3D'saturn' AND db=3D'Oracle'


Am I missing something obvious I should not be doing?

--=20
 ()  Yuval Kogman <nothingmuch@xxxxxxxx.xxx> 0xEBD27418  perl hacker &
 /\  kung foo master: /me climbs a brick wall with his fingers: neeyah!


--GID0FwUMdk1T2AWN
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFA1KkpVCwRwOvSdBgRArUMAKDDKyIZPbLg8OUDsPScP+NvMy97OQCfXFHD
0RZSPL+JPE+B/wmVK1UogXI=
=xca8
-----END PGP SIGNATURE-----

--GID0FwUMdk1T2AWN--

$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