Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: DBD::Sybase, attribute syb_err_handler
Date: Jul 11 2002 2:01PM
On Wed, 2002-07-10 at 19:51, Matthew O. Persico wrote:
> On 10 Jul 2002 07:25:53 -0700, Michael Peppler wrote:
> >>2) If I decide to skip processing, what value should be returned?
> >Return "false" from the error handler to have DBI ignore the error
> >don't trigger RaiseError/PrintError processing in DBI).
> I'm sorry, I stated the question backwarda: if I want the B to skip
> processing and pass the error along so that RaiseError/PrintError
> processing B occur in DBI, what do I return?
return any "true" value - I use return 1;
> Also, is there any way, within the error handler, to get at the $dbh or
> $sth on which the handler was triggered?
Not at the moment. I'll try to add that somehow in a future release.
Michael Peppler / email@example.com / http://www.mbay.net/~mpeppler
firstname.lastname@example.org / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!