[Mono-bugs] [Bug 70930][Nor] New - SybaseClient: Unable to connect to Sybase 12.5.1
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 2 Jan 2005 03:55:43 -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:55:43.000000000 -0500
+++ shadow/70930.tmp.28407 2005-01-02 03:55:43.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 70930
+Product: Mono: Class Libraries
+Version: 1.0
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien.robitaille@croesus.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SybaseClient: Unable to connect to Sybase 12.5.1
+
+Description of Problem:
+
+When opening a connection to a Sybase 12.5.1 database with the
+SybaseClient provider, the following exception is thrown:
+
+System.IndexOutOfRangeException: Array index is out of range.
+in <0x00127> Mono.Data.Tds.Protocol.TdsComm:Store (int,byte)
+in <0x0004a> Mono.Data.Tds.Protocol.TdsComm:Append (byte)
+in <0x00038> Mono.Data.Tds.Protocol.TdsComm:Append (byte[],int,byte)
+in <0x0005e> Mono.Data.Tds.Protocol.TdsComm:Append (string,int,byte)
+in <0x0016c> Mono.Data.Tds.Protocol.Tds50:Connect
+(Mono.Data.Tds.Protocol.TdsConnectionParameters)
+in <0x003af> Mono.Data.SybaseClient.SybaseConnection:Open ()
+
+
+Hint: If "PACKET SIZE=512" is defined in the connection string, the
+connection succeeds.
+
+
+Steps to reproduce the problem:
+1. Open a connection to a Sybase 12.5.1 database with the SybaseClient
+provider.
+
+Actual Results:
+Exception thrown.
+
+Expected Results:
+No exception.
+
+How often does this happen?
+Always.
+
+Additional Information:
+
+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.