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

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

From: Kingsley Kerce
Subject: Re: [CDBI] Re: delete on table with multiple pks
Date: 05:45 on 30 Nov 2005
Jim Salladin writes:
 > Is there a way to alias column names to get around
 > this?

Yes, see accessor_name() in the CDBI docs.  For instance, placing the
following method in your multi-pk table class may workaround your
problem.

sub accessor_name {
  my ($self,$column) = @_;
  return "myid" if $column eq "id";
  return $column;
}

Kings


_______________________________________________
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