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

Daniel Morgan monodanmorg at yahoo.com
Fri Jun 2 14:20:23 EDT 2006


Is there a bug in Bugzilla for this already?  If not, can you add the bug to http://bugzilla.ximian.com/ to make sure the patch does not get lost?
 
Good to see that someone can use Sybase 11 databases with System.Data.SybaseClient.  I will need to update the mono' wiki about that.  
 
Do you use Sybase ASA too?  If yes, maybe you can debug why SQL Anywhere does not work with System.Data.SybaseClient.  
 
By the way, we use unified diffs.  I think this is turned on via -u when using diff.


----- Original Message ----
From: Dan Mullineux <Dan at nadx.co.uk>
To: mono-devel-list at lists.ximian.com
Sent: Thursday, June 1, 2006 9:04:57 PM
Subject: [Mono-dev] SybaseClient TDS and Sybase 11 Language error


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

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060602/363956af/attachment.html 


More information about the Mono-devel-list mailing list