From: Simon Cozens Date: Mon, 21 Jun 2004 13:16:04 +0000 (+0000) Subject: Fix bug 6569: Passing DBI options in setup() X-Git-Tag: 2.10~212 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7bb1186a40e8e9da7fe26031bfc273e6933fb197;p=maypole.git Fix bug 6569: Passing DBI options in setup() (Mickael Joanne) git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@150 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole/Model/CDBI.pm b/lib/Maypole/Model/CDBI.pm index cbecaf1..f27233a 100644 --- a/lib/Maypole/Model/CDBI.pm +++ b/lib/Maypole/Model/CDBI.pm @@ -127,13 +127,14 @@ sub list :Exported { } sub setup_database { - my ($self, $config, $namespace, $dsn, $u, $p) = @_; + my ($self, $config, $namespace, $dsn, $u, $p, $opts) = @_; $config->{dsn} = $dsn; $config->{loader} = Class::DBI::Loader->new( namespace => $namespace, dsn => $dsn, user => $u, password => $p, + options => $opts, ); $config->{classes} = [ $config->{loader}->classes ]; $config->{tables} = [ $config->{loader}->tables ];