[freetds] Sybase ASA 7, unixODBC problem
James K. Lowden
jklowden at schemamania.org
Sat Nov 6 17:47:46 EST 2004
"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. :-(
More information about the FreeTDS