[CDBI] Class::DBI can't support the view for MySQL 5

Bill Moseley moseley at hank.org
Sun Oct 30 13:33:47 GMT 2005


On Sun, Oct 30, 2005 at 07:20:51AM -0500, James Zheng wrote:
> Hi team, 
> 
> Class::DBI can't support the view for MySQL 5, Has any solution for the case?
> 
> Thanks.
> 
> [Sun Oct 30 16:41:45 2005] [catalyst] [debug] Couldn't load tables "blog_view has no primary key at /usr/lib/perl5/site_perl/5.8.0/Class/DBI/Loader/Generic.pm line 196

Don't use loader to load your view and instead define it by hand.  And
give it a primary key.

-- 
Bill Moseley
moseley at hank.org





More information about the ClassDBI mailing list