Hi, all! I'm trying to set up a Maypole app to work with our MySQL database. One of the 'tables' isn't a table; it's a view. CDBI::Loader doesn't like that very much, because views don't have primary keys, and setup fails with:
instructors has no primary key at .../Class/DBI/Loader/Generic.pm line 164 BEGIN failed--compilation aborted at admin.cgi line 9 Is there some way around this? Other apps use the database, so deleting the view isn't an option. Right now, I'm thinking about overriding M::M::CDBI->setup_database, or writing an entirely new model class, but I really don't want to do that if there's a better way. Thanks, --jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org values of β will give rise to dom! ------------------------------------------------------------------------- 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