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: "Chen, Charley" <chchen at EXAMNYC dot lehman dot com>
Subject: Trapping Errors with Sybperl
Date: Aug 7 2000 2:12PM

Hi,

I'm new to the list and new to sybperl.  So this question may seem stupid.
I am trying to fix a perl script that is wrapper for isql.  However it
doesn't seem to trap errors properly.  For example if I pass in a simple
sql:
	Select 1/0

I get sqlstatus of 1 which is the same if I do
	Select 1/1

Is there anyway I can get the script to report an error?  I tried adding the
message handlers from sybutil.pl to my script and it didn't work either.
Any help would be greatly appreciated.

Sincerely,
Charley