dbi-never_need_bless_call_anywhere_in_your_subclass

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: Terrence Brannon <metaperl@mac.com>, dbi-users@perl.org
From: Tim Bunce <Tim.Bunce@pobox.com>
Subject: Re: DBI::db::selectall_arrayref somehow reblesses
the $dbh argument
Date: Mon, 15 Oct 2001 09:33:54 +0100

On Sun, Oct 14, 2001 at 05:43:11PM -0500, Stephen Clouse wrote:

> I think the main issue is that you're missing the most
> important part of t/subclass.t, the call to init_rootclass
> that identifies your subclass for the DBI dispatcher.  You
> should never need a bless call anywhere in your subclass,
> DBI should handle it automagically.  I'd wager that most
> of the unpredictable behavior you're seeing is stemming
> from this.

Spot on.

Anyone fancy sending me a documentation patch so we can make
init_rootclass() 'official'?

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu