Skip to Content.
Sympa Menu

freetds - RE: [freetds] Unsupported ct_con_props property CS_SERVERNAME

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Unsupported ct_con_props property CS_SERVERNAME
  • Date: Tue, 21 Oct 2003 10:09:06 +0200


> > > Implement CS_SERVERNAME as "select @@servername".
> ...
> > > We should issue that query immediately on connecting, and
> > > cache the name for later querying, but I can't find anywhere
> > > that we do that.
> > >
> >
> > I think so...
> > In ODBC there is a similar attribute. Instead of querying
> the server
> > in ODBC we use first msg from server (see odbc_errmsg_handler in
> > src/odbc/odbc.c).
>
> I thought I remembered that somewhere....
>
> > Perhaps we should move that code in libTDS ?
>
> What to do if the client wants to know the servername before
> we get the first message?
>

First message came just after login so before you are disconnected. A
trick should be to set servername to FreeTDS one and then when
connect_info is not NULL but seem too paranoid... Perhaps the only
exception is on connection timeout calling handler functions.

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page