Skip to Content.
Sympa Menu

freetds - RE: Bug found?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: Bug found?
  • Date: Wed, 9 Oct 2002 09:54:52 -0400


The code that you quote implements the following statement from the Sybase
dberrhandle() documentation, where it discusses INT_TIMEOUT and INT_CONTINUE
returns from the error handler:

"This return value is meaningful only for timeout errors (SYBETIME). In any
other case, this value will be considered an error, and will be treated as
an INT_EXIT."

That code, as far as it goes, it correct.

Your error handler should return INT_CANCEL instead.

Additionally, FreeTDS does not yet support the documented behavior for
either INT_TIMEOUT or INT_CONTINUE returns in the case of a SYBETIME error.
That is a bug (or something we just haven't got around to implementing
yet...call it what you will).

Cheers,
--nick

-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Wednesday, October 09, 2002 5:12 AM
To: TDS Development Group
Subject: [freetds] Bug found?


Found the following bug(?) in dbutil.c (revision 1.15).

In the method dblib_handle_err_message:

if (((rc == INT_TIMEOUT) || (rc == INT_CONTINUE))
&& (msg->msg_number != SYBETIME)) {
rc = INT_EXIT;
}

I have registered an own errorhandler that allways
returns INT_CONTINUE, but it doesn't continue
when msg->msg_number != SYBETIME.

Should dbutil really ignore that I want to continue?

/Jonas






---
You are currently subscribed to freetds as: [Nicholas_Castellano AT acml.com]
To unsubscribe, forward this message to
$subst('Email.Unsub')


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 for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.





  • Bug found?, Jonas Benjaminsson, 10/09/2002
    • <Possible follow-up(s)>
    • RE: Bug found?, Castellano, Nicholas, 10/09/2002
    • RE: Bug found?, Magnus Ahl, 10/09/2002
    • RE: Bug found?, Castellano, Nicholas, 10/09/2002

Archive powered by MHonArc 2.6.24.

Top of Page