[CDBI] Can't override db_Main

Perrin Harkins pharkins at gmail.com
Sun Jan 28 05:06:54 GMT 2007


On 1/27/07, Ryan Tate <lists at ryantate.com> 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



More information about the ClassDBI mailing list