[Mono-bugs] [Bug 49561][Maj] Changed - Casting error in libodbc.cs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 29 Nov 2003 11:46:19 -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 seifert@everybody.org.

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

--- shadow/49561	2003-10-11 14:54:26.000000000 -0400
+++ shadow/49561.tmp.24763	2003-11-29 11:46:19.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 49561
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: System.Data
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: seifert@everybody.org               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -37,6 +37,16 @@
 
 
 ------- Additional Comments From seifert@everybody.org  2003-10-11 14:54 -------
 Created an attachment (id=5560)
 Patch for System.Data.Odbc.libodbc
 
+
+------- Additional Comments From seifert@everybody.org  2003-11-29 11:46 -------
+This has been sitting here for a while and untouched, so perhaps I
+should elaborate some more...
+
+ODBC drivers assume the ColumnSize parameter is an unsigned integer. 
+By setting it to a short in the Mono code, the previous parameter (the
+DataType) gets overridden with the upper bits from the ColumnSize. 
+Usually this means that a DataType of 0 gets returned no matter what,
+making the results very hard to decipher.