On 4/20/07, Bill Moseley <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 19, 2007 at 04:59:18PM -0400, John Siracusa wrote:
>> The full DBI trace output is included below.  I don't see multiple
>> disconnects (or any disconnects, really) in the output, so I'm pretty sure
>> it's only using one $dbh.
>
> It's the Manager that seems to be closing the connection.

Ah ha, now I've got it.  It was a bug.  The Manager retains and
(sometimes a bit later, in the case of iterators) releases a dbh from
its db arg (which defaults to object_class->init_db()).  But when
"stuffing" a Rose::DB object with a $dbh obtained elsewhere, the
internal reference count wasn't being incremented.  So when the
Manager released the dbh, the Rose::DB object thought its refcount was
now zero and it disconnected its dbh.  This bug is now fixed in SVN.

-John

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to