[freetds] error handling
Castellano, Nicholas
Nicholas_Castellano at acml.com
Fri Dec 19 11:34:38 EST 2003
> From: Lowden, James K
> Sent: Thursday, December 18, 2003 5:09 PM
> To: 'TDS Development Group'
> Subject: [freetds] error handling
>
> 4. Fail. Cause the calling function to return a failure
> status. db-lib calls this INT_CANCEL; ct-lib has no precise
> equivalent. Instead, ct-lib uses CS_FAIL to abandon
> processing on the connection and mark it dead. The
> application can re-open it, if it so chooses.
Returning INT_CANCEL does not always cause the calling routine to return
failure status. I think there may be parts of the Sybase documentation that
state it in this oversimplified way, but we need to code to observed
behavior, not to (possibly incorrect) documentation.
-----------------------------------------
The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. Please note that we do not accept account orders and/or instructions by e-mail, and therefore will not be responsible for carrying out such orders and/or instructions.
More information about the FreeTDS
mailing list