From 7bb1186a40e8e9da7fe26031bfc273e6933fb197 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 21 Jun 2004 13:16:04 +0000 Subject: [PATCH] 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 --- lib/Maypole/Model/CDBI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ]; -- 2.39.5