On Thu, Dec 16, 2004 at 10:58:35AM +0100, Steffen Goeldner wrote:
> However, it's placed below the connect() method:
> 
>   
> <http://search.cpan.org/~timb/DBI-1.46/lib/DBI/DBD.pm#The_database_handle_constructor>
> 
> where we have an outer handle by way of an exception!
> Instead of changing the nice description, I'd rather change the
> example code (see attached patch). Advantages that accrued:
> 
>  - Now, we have the inner handle the text speaks about.
>  - The example is shorter.
>  - The example shows both, the STORE method and direct hash access.
>  - The example shows a realistic DBI attribute ('Active') instead of
>    whatever gets extracted from DSN (and may cause troubles in STORE).

(STORE should always be able to handle any kind of attribute,
avoiding it is purely an optimization. Less relevant in these days
of gigahertz processors.)

>  - The example shows a realistic driver specific attribute.
>  - The examples are more consistent ($dbh is always the inner handle).

Thanks, applied.

Tim.

Reply via email to