On Sun, 2005-09-25 at 14:01 +0100, David Baird wrote:
> On 9/25/05, Paulo Silva <[EMAIL PROTECTED]> wrote:
> That's pretty weird. Your setup call looks like this:
> 
> CD->setup('dbi:Pg:dbname=xxxx', 'xxxx', 'xxxx', {AutoCommit => 1});
> 
> including the curly braces?

Yes

> What version of Maypole are you using? There was a bug in a previous
> version that could have caused this behaviour.

Maypole => 2.10
Class::DBI::Loader => 0.22

In my version I think the error is in the Maypole::Model::CDBI class.

The setup_database sub creates a new Class::DBI::Loader with:

    $config->loader || $config->loader(
        Class::DBI::Loader->new(
            namespace => $namespace,
            dsn       => $dsn,
            user      => $u,
            password  => $p,
            %$opts,
        )
    );

but after viewing the new method at Class::DBI::Loader::Generic I think
it should be something like this:

    $config->loader || $config->loader(
        Class::DBI::Loader->new(
            namespace => $namespace,
            dsn       => $dsn,
            user      => $u,
            password  => $p,
            options   => $opts,
        )
    );

-- 
Paulo Silva <[EMAIL PROTECTED]>
Eurotux Informática, S. A.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to