Skip to Content.
Sympa Menu

freetds - Re: [freetds] Ms sql backslash in named instance 2005

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Ms sql backslash in named instance 2005
  • Date: Fri, 30 Oct 2009 14:06:16 +0100

2009/10/30 James K. Lowden <jklowden AT freetds.org>:
> Frediano Ziglio wrote:
>> 0.62 understand only "server:port" syntax so
>> it finds "myserver\one" correctly. 0.82 change "myserver\one" to
>> "myserver" with instance "one" so it doesn't find "myserver" section
>> in file. The solution would be to search for server before parsing for
>> instance. This way does not break compatibility.
>
> Good idea!
>

Yes, but I don't like that much my patch... I think that
server\instance and server:port should be symmetric...

0.62

"server\instance" -> look for section "server\instance"
"server:port" -> look for section server with port set to "port"

0.82

"server\instance" -> look for section "server" with instance set to "instance"
"server:port" -> look for section "server" with port set to "port"

my proposed patch

"server\instance" -> look for section "server\instance", if not found
look for section "server" with instance set to "instance"
"server:port" -> look for section "server" with port set to "port"

as you can note is not symmetric... I proposed this way

"server\instance" -> look for section "server\instance", if not found
look for section "server" with instance set to "instance"
"server:port" -> look for section "server:port", if not found look for
section "server" with port set to "port"

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page