freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: Changing return codes from tds_convert()
- Date: Wed, 25 Sep 2002 10:31:45 -0400
Thanks, I will check out cs_config(). I don't think it really changes much,
because the message numbers are still going to be different from those used
in DB-Library.
In fact, the changes I made should make it easier to get this right, since
we can generate all the appropriate messages in one place. Previously, lots
of conversion error conditions were simply returning TDS_FAIL; at least in
the DB-Library case those are now all returning appropriate codes which
result in the right messages being generated within dbconvert(). So overall
it looks like this was a useful exercise, even if it still needs more work.
Cheers,
--nick
-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Wednesday, September 25, 2002 2:13 AM
To: TDS Development Group
Subject: [freetds] RE: Changing return codes from tds_convert()
Nick,
> However, my experimentation with cs_convert() in Sybase's CT-Lib shows
> that the client message callback is never invoked
I had a quick look at this. The "ct-lib" convert routine is cs_convert(),
and is actually part of "cs-lib". I Haven't ever really got my head round
this distinction, but suffice to say, it seems that cs-library has its own
error message handling/callback , which is distinct from ct-library. More
complications!
Perhaps, you had neglected to set up a cs-library message callback, in which
case, as the manual states:
"If a message callback is not installed and inline message handling is not
enabled, CS-Library discards message information." I don't know if this
changes anything WRT your proposals for tds_convert(). I suspect not. I just
hope we don't have to install another message handling routine.
Oh no, I've just checked and we do. it seems that cs-library callbacks are
set up using cs_config(), which is, ahem, unimplemented in freetds as yet.
Aren't you the king of error handling now Nick ? :-)
Bill
---
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.
-
RE: Changing return codes from tds_convert()
, (continued)
- RE: Changing return codes from tds_convert(), Castellano, Nicholas, 09/24/2002
- RE: Changing return codes from tds_convert(), Lowden, James K, 09/24/2002
- RE: Changing return codes from tds_convert(), Thompson, Bill D (London), 09/24/2002
- RE: Changing return codes from tds_convert(), Thompson, Bill D (London), 09/24/2002
- RE: Changing return codes from tds_convert(), Thompson, Bill D (London), 09/24/2002
- RE: Changing return codes from tds_convert(), Lowden, James K, 09/24/2002
- RE: Changing return codes from tds_convert(), Castellano, Nicholas, 09/24/2002
- RE: Changing return codes from tds_convert(), James K. Lowden, 09/24/2002
- RE: Changing return codes from tds_convert(), Thompson, Bill D (London), 09/25/2002
- RE: Changing return codes from tds_convert(), ZIGLIO Frediano, 09/25/2002
- RE: Changing return codes from tds_convert(), Castellano, Nicholas, 09/25/2002
- RE: Changing return codes from tds_convert(), Michael Peppler, 09/25/2002
- RE: Changing return codes from tds_convert(), Thompson, Bill D (London), 09/26/2002
- RE: Changing return codes from tds_convert(), Lowden, James K, 09/26/2002
Archive powered by MHonArc 2.6.24.