Skip to Content.
Sympa Menu

freetds - Re: [freetds] Sybase ASA 7, unixODBC problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Sybase ASA 7, unixODBC problem
  • Date: Sat, 6 Nov 2004 17:47:46 -0500

"Gene Dymarskiy" <gagarin AT i-dep.com> wrote:
>
> It would not build with the patch. I get the following error:
>
> odbc.c: In function `odbc_connect':
> odbc.c:293: error: structure has no member named `tds_login'

I'm sorry, Gene. I see the problem, two problems, actually. One is that
odbc_connect() doesn't have access (afaict) to a TDSLOGIN structure. Two
is that the ODBC driver doesn't get the configuration information the same
way that db-lib and ct-lib do, by calling tds_read_config_info(). I guess
it re-implements that logic somewhere, but having just spent 30 minutes
looking for it, I give up. It's just too painful.

The issue, we know: the ODBC driver does not set the servername field of
the login packet before connecting. It should call tds_set_server() when
it discovers the servername, although it's not clear what "server name"
means when freetds.conf isn't used.

Perhaps someone more familiar with and more enthusiastic about the code
can figure out where that call should be made. Until then, it won't
connect to ASA servers. :-(

Regards,

--jkl






Archive powered by MHonArc 2.6.24.

Top of Page