Re: trying to subclass DBI
- From: Tim.Bunce@xxxxxxxxx (Tim Bunce)
- Date: Fri, 30 Dec 2005 20:21:45 +0000
On Fri, Dec 30, 2005 at 12:58:02PM +0100, wernerus sebastien wrote:
> Tim, I made the changes you suggested. Here is the code:
> -------------------------------
Thanks.
> -------------------------------
>
> But it gives exactly the same result, namely:
> connection ok
> test1:
> test2:
Umm. [...later...] Ah. The current t/30subclass.t test doesn't check
that connect was called, and it isn't. And that's by design (I think :)
To intercept the connect you can override one of these two methods:
- MySubDBI::connect
- MySubDBI::db::connected
Tim.
.
- References:
- trying to subclass DBI
- From: Wernerus Sebastien
- Re: trying to subclass DBI
- From: Tim Bunce
- Re: trying to subclass DBI
- From: Tyler MacDonald
- Re: trying to subclass DBI
- From: Wernerus Sebastien
- trying to subclass DBI
- Prev by Date: Re: trying to subclass DBI
- Next by Date: RE: :Oracle - with ora10g oci.dll
- Previous by thread: Re: trying to subclass DBI
- Next by thread: Help Required regarding Database Operations
- Index(es):
Relevant Pages
|