On Thu, Oct 24, 2002 at 01:40:19PM -0700, Henri Asseily wrote:
> I may be missing something, but it seems that connect() is not being 
> overloaded when I subclass via the RootClass method.
> 
> Is that correct behavior or is my code broken?

Umm, the docs say:

: You have two choices, either a static method call using the name
: of your subclass:
:  
:   $dbh = MySubDBI->connect(...);
:  
: or specifying a C<RootClass> attribute:
:  
:   $dbh = DBI->connect(..., { RootClass => 'MySubDBI' });
:  
: The only difference between the two is that using an explicit
: RootClass attribute will make the DBI automatically attempt to load
: a module by that name (and not complain if such a module can't be
: found). If both forms are used then the attribute takes precedence.

Are you saying that you'd expect the second call to invoke
MySubDBI->connect(...) somewhere along the way?

If so, why are you not just using the first form?

Tim.

Reply via email to