[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: What's next for Apache::Session
From:       "Jeffrey W. Baker" <jwbaker () acm ! org>
Date:       2000-04-29 1:47:47
[Download RAW message or body]

On Fri, 28 Apr 2000, Ajit Deshpande wrote:

> On Fri, Apr 28, 2000 at 03:25:18PM -0700, Jeffrey W. Baker wrote:
> > The next version of Apache::Session is almost ready.  This version is
> > dubbed 1.50 because of it's significant-but-not-outrageous changes.  The
> > changes from 1.03 are:
>  
>   <...>
> 
> > 4) The DBI interface class has been modified to accept an already-open DBI
> > handler as an argument.
> 
> Excellent!
> 
> > 5) New interface classes have been added for Apache::Session::Postgres,
> > ::Sybase, and ::Oracle.  These are special cases of ::Flex.
> 
> I currently modify the connection sub in DBIStore.pm  as follows:
> 
> sub connection {
>     my $self    = shift;
>     my $session = shift;
>     
>     return if (defined $self->{dbh});
> 
>     $self->{dbh} = DBI->connect($session->{args}->{DataSource},
>         $session->{args}->{UserName}, $session->{args}->{Password},
>         { RaiseError => 1, AutoCommit => 1, 
>           LongReadLen => $session->{args}->{LongReadLen} 
>         }) || die $DBI::errstr;
> }
> 
> i.e. I pass the LongReadLen parameter for Oracle. Would something like 
> this be a part of the new ::Oracle interface class?

Yes.  Alternately, you could open the $dbh and pass it to the
constructor.  Either way, the new version should end people's complaints
about Apache::Session not getting along with their DBI/Apache::DBI setups.

-jwb

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic