Skip to Content.
Sympa Menu

freetds - Re: [freetds] DBSETLCHARSET() vs freetds.conf

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] DBSETLCHARSET() vs freetds.conf
  • Date: Wed, 11 Jan 2012 23:03:47 -0500

On Wed, 11 Jan 2012 12:03:58 -0500
Randy Syring <rsyring AT gmail.com> wrote:

> Assuming there is a charset value in freetds.conf that applies to the
> current connection and and DBSETLCHARSET() is used to set a different
> value, which one wins?

As far as db-lib is concerned, a call to DBSETLCHARSET() is the last
word on the matter. Anything else is a bug.

Programatic settings should always win over environmental ones. If the
application wants to let the user affect something through environment
variables, that's fully within its power to accomplish.

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page