[Dbix-class] Problem overriding connection method from Schema
module
Quinn Fazigu
quinnfazigu at gmail.com
Fri Aug 21 12:53:38 GMT 2009
On Fri, Aug 21, 2009 at 4:59 AM, Emmanuel Quevillon <tuco at pasteur.fr> wrote:
> sub connection {
>
> my ($self, @rest) =3D @_;
> $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=3Dtest','test','pass');
That "dib" there in the connect parameter is a typo for "dbi", right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090821/4ab=
1f4ec/attachment.htm
More information about the DBIx-Class
mailing list