Re: CS_SERVERADDR tag is not handled correctly in ct_con_props

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Fri, 10 Jan 2014 00:03:42 +0000
Frediano Ziglio <[email protected]> wrote:

> - should configuration NEVER be read if CS_SERVERADDR is used? Looking
> at libTDS code (tds_read_config_info) seems that an attempt to read
> configuration is always done, even for server:port syntax. However
> setting server_name to "" should cause only global section to be
> parsed.

ISTM the global section of freetds.conf should apply regardless.  

Global is global.  If you don't want a global setting, don't set it.
If you want to override it, use an environment variable.  

Another way to think about it: just because we don't need to use
freetds.conf to resolve a name for a particular host when an address is
provided doesn't imply that non-host (global) settings are invalid.  

The configuration establishment code was never my favorite.  Too much
logic for very little data.  It could use some TLC from someone with a
preference for table-driven design.  

HTH.  

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.