|Subject:||Can't find method set_sql trying to create a model from mysql|
I'm getting the following error trying to create the model from a mysql backend Show quoted text
> script/admin_create.pl model CDBI CDBI dbi:mysql:database user passCouldn't require loader class "Class::DBI::Loader::mysql", "Can't locate object method "set_sql" via package "Class::DBI::mysql" at /usr/local/lib/perl5/site_perl/5.8.8/Class/DBI/mysql.pm line 58. Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.8/Class/DBI/Loader/mysql.pm line 8. Compilation failed in require at (eval 17) line 2. BEGIN failed--compilation aborted at (eval 17) line 2. " at /usr/local/lib/perl5/site_perl/5.8.8/Class/DBI/Loader.pm line 81. I found that the problem is it doesn't use Class::DBI before call his method "set_sql". I fixed it adding "use Class::DBI" sooner into Catalyst::Helper::Model::CDBI. Please contact me if you need some extra test. I'll be glad to help.