@@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().
Michael
Internet
[email protected]@peppler.org - 10/01/2006 22:25
Sent by: [email protected]
To: sybperl-l
cc:
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.