On Mon, May 19, 2008 at 10:31:06AM -0400, Perrin Harkins wrote:
> On Mon, May 19, 2008 at 5:12 AM, Louis-David Mitterrand
> >                        ## When commented out perl 5.10 works fine
> >                        request_class => 
> > 'MasonX::Request::WithApacheSession',
> >                        session_class => 'Apache::Session::Postgres',
> >                        session_data_source => 'dbi:Pg:dbname=sessions',
> >                        session_user_name => '',
> >                        session_password => '',
> >                        session_use_cookie => 1,
> >                        session_cookie_expires => undef,
> >                        ## When commented out perl 5.10 works fine
> 
> My guess would be that your Postgres driver has a problem.  Try
> running some Pg queries from Mason.

I thought about that too, but declaring in my handler.pl:

        sub handler {
        ....

        $HTML::Mason::Commands::dbc = DBI->connect("dbi:Pg:dbname=critik", "",
                                "", {RaiseError=>1, PrintError=>1, 
AutoCommit=>1});
        ....
        }

and using $dbc in my mason code works fine.

Reply via email to