On Fri, Aug 21, 2009 at 4:59 AM, Emmanuel Quevillon <[email protected]> wrote:
> sub connection {
>
> my ($self, @rest) = @_;
> $self->next::method(@rest);
>
> $self->driver_name($self->handler()->{Driver}->{Name});
>
> }
Does standard DBIx::Class::Schema have a "handler" method, or is that a
decoration added by Catalyst? You could try wrapping the driver_name
assignment like so:
if ($self->can('handler')) {
$self->driver_name($self->handler()->{Driver}->{Name});
}
Schema::MyAppDB->connect('dib:Pg:dbname=test','test','pass');
That "dib" there in the connect parameter is a typo for "dbi", right?
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]