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

Sebastien FLAESCH sf at 4js.com
Tue Jan 15 11:10:35 EST 2008


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
> 



More information about the FreeTDS mailing list