Skip to Content.
Sympa Menu

freetds - Re: Sybase SQL Anywhere

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Ian Harding" <ianh AT tpchd.org>
  • To: <camber AT ais.org>, <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Sybase SQL Anywhere
  • Date: Thu, 26 Jul 2001 08:58:09 -0700


Thanks for looking into this! I will try that next week when I get back to
work.

Ian A. Harding
Programmer/Analyst II
Tacoma-Pierce County Health Department
(253) 798-3549
mailto: ianh AT tpchd.org

>>> camber AT ais.org 07/25/01 05:35PM >>>
On Wed, 25 Jul 2001, Ian Harding wrote:

> 2001-07-25 16:08:30 processing result tokens. marker is e5
0xE5 = EED, the error. tds_process_result_tokens() should call
tds_process_msg() which should call the installed handler. Either, we
have a bug (which I assume would have been caught by now), or nsfreetds is
not installing error handlers, or there is a config option with it that is
turning it off.

*Pulling down source code*

ohmagosh, it uses the tds layer directly...neat. It looks like it does the
right thing...configures Ns_FreeTDS_Err_Handler as the callback handler.

Here is the revelent section from FreeTDS from src/tds/token.c:

if(tds->parent) {
if (tds->msg_info->priv_msg_type)
g_tds_err_handler(tds->parent);
else
g_tds_msg_handler(tds->parent);
} else {
if(tds->msg_info->msg_number)
tdsdump_log(TDS_DBG_WARN,
"%L Msg %d, Level %d, State %d, Server %s, Line %d\n%s\n",
tds->msg_info->msg_number,
tds->msg_info->msg_level,
tds->msg_info->msg_state,
tds->msg_info->server,
tds->msg_info->line_number,
tds->msg_info->message);
tds_free_msg(tds->msg_info);
}

Either one of two things is happening. The message is getting delivered
to nsfreetds and is being ignored (which I can't see how) or msg_number is
0 (otherwise the error would show up in the tds log).

Move the call to tdsdump_log above the first if there and recompile. We'll
see what shakes loose.

Brian


---
You are currently subscribed to freetds as: [ianh AT tpchd.org]
To unsubscribe, forward this message to
leave-freetds-132781U AT franklin.oit.unc.edu





Archive powered by MHonArc 2.6.24.

Top of Page