[Mono-bugs] [Bug 78894][Nor] New - [PATCH] Can't Inserting an empty varbinary value under 1.0 profile
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 18 23:41:08 EDT 2006
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 dean at brettle.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78894
--- shadow/78894 2006-07-18 23:41:08.000000000 -0400
+++ shadow/78894.tmp.22434 2006-07-18 23:41:08.000000000 -0400
@@ -0,0 +1,29 @@
+Bug#: 78894
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data.SqlClient
+AssignedTo: tsenganal at novell.com
+ReportedBy: dean at brettle.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATCH] Can't Inserting an empty varbinary value under 1.0 profile
+
+Description of Problem:
+
+If you try to insert an empty (i.e. zero length but not NULL) varbinary
+value into a table, under the 1.0 profile, you get an
+ArgumentOutOfRangeException. The exception is thrown when
+Tds70.FormatParameter() calls BitConverter.ToString(). For compatibility
+reasons, BitConverter.ToString(new byte[0] {}) throws the exception under
+the 1.0 profile but not the 2.0 profile.
+
+I will attach a patch (against trunk) that adds a test case to SqlTest.cs
+and fixes the bug in Tds70.cs.
More information about the mono-bugs
mailing list