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

Reply via email to