Re: [CDBI] Can't override db_Main

"Perrin Harkins" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
On 1/27/07, Ryan Tate <lists-UNebACArQA1Wk0Htik3J/[email protected]> wrote:
>   package My::Test::DBI;
>   use warnings;
>   use strict;
>   use base 'Class::DBI';
>   __PACKAGE__->connection('DBI:mysql:database=test','test','');
>   sub db_Main{die 'made it!'}
>   1;

Don't call connection.  That creates a db_Main method.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.