PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

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?
> >>$err?
> >
> >Return "false" from the error handler to have DBI ignore the error
> >(i.e.
> >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
-- 
Michael Peppler / mpeppler@peppler.org / http://www.mbay.net/~mpeppler
mpeppler@zetatools.com / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!