[Mono-dev] SybaseClient TDS and Sybase 11 Language error

Dan Mullineux Dan at nadx.co.uk
Thu Jun 1 21:04:57 EDT 2006


Whilst spiking a proof of concept of mono on Sybase 11 I couldnt connect 
to the server
 
I tracked it down to tds.language="us_english", this errors in the 
connection with:
 
Mono.Data.SybaseClient.SybaseException: Internal error occurred while 
converting characters.
 
cant work out why, because its the default language on the server.
 
Still by allowing tds.language=null before connecting everything is ok, 
have not checked this on newer versions of sybase.
 
so from revision 61396. in mono.myrealbox.com
 
Tds.cs - protected void SetLanguage (string language)
 
1524c1524
<                               language = "us_english";
---
 >                               language = null;

SybaseConnection.cs - private void SetProperties (NameValueCollection 
parameters)

478a479
 >                       parms.Language = null;

Dan Mull




More information about the Mono-devel-list mailing list