[Mono-bugs] [Bug 70930][Nor] Changed - SybaseClient: Unable to connect to Sybase 12.5.1

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 4 Jan 2005 00:40:18 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien.robitaille@croesus.com.

http://bugzilla.ximian.com/show_bug.cgi?id=70930

--- shadow/70930	2005-01-02 03:57:17.000000000 -0500
+++ shadow/70930.tmp.18937	2005-01-04 00:40:18.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.0
 OS: Red Hat 9.0
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.Data
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: sebastien.robitaille@croesus.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -53,6 +53,26 @@
 The size of the internal buffer used in TdsComm is based on the 
 connection string parameter "PACKET SIZE" for SybaseClient. By default, 
 the buffer seems to be allocated with a size of 0.
 
 ------- Additional Comments From sebastien.robitaille@croesus.com  2005-01-02 03:57 -------
 *** Bug 60827 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From sebastien.robitaille@croesus.com  2005-01-04 00:40 -------
+The problem can only be reproduced when the 
+Mono.Data.SybaseClient.SybaseConnection type is loaded dynamically.
+
+i.e., instead of adding a reference to Mono.Data.SybaseClient.dll at 
+compile time, use the following code to instanciate the connection 
+object:
+
+Type connectionType = Type.GetType
+("Mono.Data.SybaseClient.SybaseConnection,Mono.Data.SybaseClient", 
+true);
+IDbConnection connection = (IDbConnection) Activator.CreateInstance
+(connectionType);
+connection.ConnectionString = myConnectionString;
+connection.Open();
+
+(you may have to copy both Mono.Data.SybaseClient.dll and 
+Mono.Data.Tds.dll in you working directory).
+