Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: michael dot peppler at bnpparibas dot com
Subject: Re: Global Sybase variables and ctlib
Date: Jan 11 2006 6:51AM

@@error will usually be returned as an error code in the error handler - in
CTlib that would be the handler that you install via ct_callback().


Internet - 10/01/2006 22:25

Sent by:

To:    sybperl-l


Subject:    Global Sybase variables and ctlib

Is there an easy way to get back global variable information (especially
@@error) without having to do another select?

I have a stored procedure I am calling.  It does not check the error
conditions of the last insert or update and I cannot modify the stored
procedure.  My concern is that this returns back a bunch of information
and I would like to be able to check for errors as I am getting back
stuff.  Currently I get error messages back from Sybperl, but no real
reported error codes.  Do I need to rewrite the error handling hooks to
 do this or is there a better shortcut?

This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.