[CDBI] Re: delete on table with multiple pks

Kingsley Kerce kingsley at kingsleysoftware.com
Wed Nov 30 05:45:51 GMT 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

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


More information about the ClassDBI mailing list