[Maypole] Primary key on multiple columns

From: Gabor Szabo (gabor at perl.org.il)
Date: Mon Sep 06 2004 - 13:51:21 BST


After replacing the unsupported fields with other fields most of things
are already working in the CPANTS reader but there is one table for which
the primary key should be two columns.

I tried to do this in my Maypole code

CPANTS::Maypole::Prereq->columns(Primary => qw/dist requires/);

that generated the following:

[Mon Sep 06 10:47:30 2004] [error] [client 127.0.0.1]
CPANTS::Maypole::Prereq->retrieve() parameters don't include values for
all primary key columns (dist requires) at
/opt/perl584/lib/site_perl/5.8.4/Maypole/Model/Base.pm line 16, referer:
http://cpants.local/size/list/
[Mon Sep 06 10:47:30 2004] [error] [client 127.0.0.1] Premature end of
script headers: cpants.pl, referer: http://cpants.local/size/list/

what am I doing wrong and how can I tell maypole which are the primary
keys ?

regards
   Gabor

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT