Le jeudi 22 août 2013 à 23:32 +0200, David E. Wheeler a écrit :

> What if you change the callback to return a true value?
> 


Do you mean like this (return 1 instead of simply return)? 

    my $dbh = DBI->connect_cached( "DBI:Pg:dbname=aspro", 'www-data',
undef, {
        PrintError =>1,
        RaiseError => 1,
        AutoCommit => 1,
        pg_bool_tf => 't',
        private_preferred_datestyle => $preferred_datestyle,

Callbacks => {
                 "connect_cached.new" => sub {
                     warn "new handle";
                     return 1;
                 },

                 }
                                   } )  


No change, a new handle is created on every request.



-- 
Salutations, Vincent Veyron 
http://marica.fr/ 
Gestion des contrats, des contentieux juridiques et des sinistres
d'assurance

Reply via email to