Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: dbmsghandle's $db - what is it?
Date: Oct 30 1997 8:54PM
Michael Peppler wrote:
> David C Worenklein wrote:
> > If you call a method and it causes the message handler to be invoked,
> > the database handle passed to the message handler is NOT the same
> > one that called the method.
> This is a known problem.
> But I've fixed it for the upcoming 2.09 release. You can take a look
> at how things are in the 2.08_50 release that is available from
> my homepage.
I should also say that in the current (2.08 and before) implementation,
the $dbh parameter passed to an error or message callback is a
non-blessed reference to a hash, so you can do things like
$string = Sybase::DBlib::dbstrcpy($dbh);
$string = $dbh->dbstrcpy
in a message handler, and the attributes are not available.
Michael Peppler -||- Data Migrations Inc.
email@example.com -||- http://www.mbay.net/~mpeppler