On Feb 15, 2007, at 16:46, Jay Savage wrote:
> Can anyone point me to information on using TEMP columns with maypole? > > I have a class with the following columns() declaration (I'm using > CDBI::Plain): > > __PACKAGE__->table('courses'); > __PACKAGE__->columns( > All => qw/ > courseid > course_description > date > start_time > end_time > max_enroll > campus > instructor > location > organization > is_visible > is_canceled > cancel_date > created_by > created_at > last_update_by > last_update_at > keywords > featured > /, > TEMP => qw/count/ > ); > > > Whenever I visit a class page, I get an error from > DBIx::ContextualFetch that count is an unknown column. I thought the > point of TEMP columns is that they aren't passed to the db, or am I > missing something? > Hi jay Does this work outside of Maypole? DBIx::ContextualFetch is in use a very low level - Ima::DBI sets it as the RootClass for all DBI connections so every Class::DBI object is going to be using it. I've got at least one TEMP column in my Maypole code and it works just fine without any particular magic. nic ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Maypole-users mailing list Maypole-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/maypole-users