|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: trapping error messages
Date: Apr 4 2001 10:15PM
John P. Hauck writes:
> Please forgive me if this question has been asked before...
>
> In my perl pgm, how do I trap and act upon error messages generated by
> triggers?
> I'm trying to update a value in a record, and the trigger is preventing
> the update and returning an error message.
See the dbmsghandle() call, and the sybutil.pl file (it's in the lib
directory of the sybperl distribution) for some example "message"
handlers.
Michael
--
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|