From f9f34047115475e7ca94d8c53273d1b3388cc33d Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Tue, 17 Feb 2004 10:30:01 +0000 Subject: [PATCH] Take user and password. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@64 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole/Model/CDBI.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Maypole/Model/CDBI.pm b/lib/Maypole/Model/CDBI.pm index 43b8c7b..b2e5929 100644 --- a/lib/Maypole/Model/CDBI.pm +++ b/lib/Maypole/Model/CDBI.pm @@ -101,11 +101,13 @@ sub list :Exported { } sub setup_database { - my ($self, $config, $namespace, $dsn) = @_; + my ($self, $config, $namespace, $dsn, $u, $p) = @_; $config->{dsn} = $dsn; $config->{loader} = Class::DBI::Loader->new( namespace => $namespace, - dsn => $dsn + dsn => $dsn, + user => $u, + password => $p, ); $config->{classes} = [ $config->{loader}->classes ]; $config->{tables} = [ $config->{loader}->tables ]; -- 2.39.5