Skip to Content.
Sympa Menu

freetds - Re: [freetds] Unicode: Need for a DSN parameter to define thecharset

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Sebastien FLAESCH <sf AT 4js.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Unicode: Need for a DSN parameter to define thecharset
  • Date: Tue, 15 Jan 2008 17:10:35 +0100

Ok... I see.

Should we extend the tds_config_boolean() function to use strcasecmp() for
all possible string values (yes, no, true, false, on, off)?

For now it is only case insensitive for Yes and No...

Seb

James K. Lowden wrote:
Sebastien FLAESCH wrote:
Is there any spec about values for ODBC boolean parameters?
= Can one set YES / YeS / No / nO ?
= Are true/false/0/1 allowed?

AFAIK, yes. Interpretation of an odbc.ini file is up to the driver. It
comes to us from the wonderful world of windows, where case is never a
question.
Also, case insensitivity and various forms of booleans are consistent with
the rules for freetds.conf.
In lieu of a spec, a maxim:
"Be liberal in what you accept, and conservative in what you send."
-- Jon Postel [1]

Regards,
--jkl

[1] http://www.postel.org/postel.html
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds






Archive powered by MHonArc 2.6.24.

Top of Page