> On Mon, 17 Dec 2001, Stas Bekman wrote (privately, discussing a book
review:):
>
> > Ged wrote:
> > <book_extract>
> >   If you want to use C<Apache::DBI> but you have both situations on
> >   one machine, at the time of writing the only solution is to run two
> >   mod_perl enabled servers, one which uses C<Apache::DBI> and one
> >   which does not.
> > </book_extract>
> > [META: Stas: Could one not simply patch Apache::DBI to
> > permit disconnects from one of the databases? -- Ged.]
> >
> > That's probably a good idea. Go ahead and suggest it to the author/list?
>
> Author/List:  Is this a Good Idea?

>From one of Geoffrey's digests:

You can disable Apache::DBI database handle persistence on the fly
    by changing DBI->connect() to the undocumented 5 parameter call
      $dbh = DBI->connect($dbase, $user, $pass, \%attr,
                          undef, "connect") || die $DBI::errstr;
    This will override the default Apache::DBI behavior of caching new
    connections without affecting those previously cached

Does that do it?

- Perrin

Reply via email to