Re: [CDBI] Re: delete on table with multiple pks

[prev] [thread] [next] [Date index for 2005/11/27]

From: William Ross
Subject: Re: [CDBI] Re: delete on table with multiple pks
Date: 00:29 on 27 Nov 2005
On 25 Nov 2005, at 23:09, Jim Salladin wrote:

> Is there some more code can I provide to make this issue more
> accessible for help?

multiple-column primary keys aren't that common with cdbi, as they're  
only recently supported and not really that thoroughly. That's  
probably why it's quiet.

>> The error I get is this:
>> Can't delete 1/3: DBD::Oracle::st execute failed: called with 1 bind
>> variables when 2 are needed.

the active ingredient here is:

   eval { $self->sql_DeleteMe->execute($self->id) };

(cdbi line 705)

the call to $self->id should return a list of two key values suitable  
for binding to the delete statement, but it isn't: you're only  
getting one. I don't know why. What do you get when you call $self- 
 >id directly?

by the way, are you inflating either of the key columns with a has_a  
relationship? that's not allowed.

will


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

(message missing)

[CDBI] delete on table with multiple pks
Jim Salladin 06:02 on 25 Nov 2005

[CDBI] Re: delete on table with multiple pks
Jim Salladin 23:09 on 25 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Kingsley Kerce 23:18 on 25 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
William Ross 00:29 on 27 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Matt S Trout 02:49 on 27 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Peter Speltz 05:47 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Matt S Trout 15:06 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Perrin Harkins 15:33 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Jim Salladin 05:18 on 30 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Kingsley Kerce 05:45 on 30 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
William Ross 08:24 on 30 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Jim Salladin 17:12 on 30 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Peter Speltz 16:57 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Perrin Harkins 17:18 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Matt S Trout 18:35 on 28 Nov 2005

[CDBI] Re: delete on table with multiple pks
Edward J. Sabol 21:00 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Peter Speltz 22:29 on 28 Nov 2005

Re: [CDBI] Re: delete on table with multiple pks
Perrin Harkins 22:40 on 28 Nov 2005

Generated at 14:52 on 01 Dec 2005 by mariachi v0.52