[Catalyst] Force Class::DBI using backticks in queries

Maxim Nechaev nechaev at technodesign.ru
Fri Dec 23 09:00:17 CET 2005


DB> Have a look at Class::DBI::Backtickify.

Thanks for answer. It looks like what i need.
But i can't plug it in my CDBI model. I try:


###################################################
package MyApp::Model::CDBI;

#...

__PACKAGE__->config
(
    {
        dsn               => 'dbi:mysql:test',
        user              => 'root',
        password          => '',
        options           => {},
        relationships     => 0,
        left_base_classes => qw/Class::DBI::Plugin::Backtickify/,
    },
);

#...

###################################################



And i get error message:
Caught exception "Can't locate object method "transform_sql" via
package "Class::DBI::Plugin::Backtickify" at (eval 108) line 1." 



--
Maxim Nechaev




More information about the Catalyst mailing list