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: "Matthew O dot Persico" <persicom at acedsl dot com>
Subject: DBD::Sybase, attribute syb_err_handler
Date: Jul 10 2002 1:21AM

Two questions:

1) When last I was using error handlers in Sybase, it was for DBLib or Sybase::DBLib and there were two, err_handler and msg_handler. Can I assume from the DBD::Sybase docs that there is one exposed handler now (syb_err_handler) and that it should be coded to handle the
functions of both err and msg handler? , i.e I COULD do this:

sub my_old_err_handler {
..
}

syb my_old_msg_handler {
..
}

syb my_new_handler {
	if ($state==0 && $line==0 && !defined($server) && not
		defined($proc)) {
		return my_old_msg_handler (@_);
	} else {
		return my_old_err_handler(@_);
	}
}

2) If I decide to skip processing, what value should be returned? $err?

--
Matthew O. Persico