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: Mon, 20 Oct 2003 14:02:04 +0200

> >
> > Michael Peppler wrote:
> > > BTW - CS_SERVERNAME is still supported in recent OpenClient
> > versions.
> >
> > Oh ? That'd be great, no code changes. Can you please point out my
> > idiocy and tell me where I might find the definition of it ?
>
> Michael meant exactly what he said, Patrick, that it's
> supported in recent versions of Sybase OpenClient, not just
> the ancient ones.
>
> If I may make a suggestion, why not change our code instead
> of yours? Implement CS_SERVERNAME as "select @@servername".
> It's safe to make ct-lib calls from within ct-lib, as long as
> no results are pending.
>
> 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). Perhaps we should move that code in libTDS ?

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page