perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: pnotes MP1->MP2
Date Mon, 03 Apr 2006 19:25:20 GMT


John Russell wrote:
> In MP1 it was possible to do..
> 
> Authorization Phase
> 
> sub handler {
> 
>   my $dbh;
> 
>   $dbh = DBI->connect(..)
>       || return "Error connecting.\n $DBI::errstr\n";
> 
>   $r->pnotes(DBH => $dbh);
> 
> 
> Response Phase
> 
> sub handler($$) {
> 
>   my $dbh = $r->pnotes('DBH');
> 
> However this doesn't work in MP2 because $dbh is a hash

as indicated by others here, the problem rests elsewhere in your code and
not with pnotes() proper.

nevertheless, I've added some tests to our pnotes tests to verify that $dbh
does indeed currently work and doesn't ever loose its blessed magic during
our storage process.

  http://svn.apache.org/viewcvs?rev=391122&view=rev

--Geoff

Mime
View raw message