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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Oct 2003 14:52:53 -0400 (EDT)


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:52:53.000000000 -0400
+++ shadow/49561.tmp.20741	2003-10-11 14:52:53.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 49561
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: seifert@everybody.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Casting error in libodbc.cs
+
+I found a casting error in libodbc.cs for the method SQLDescribeCol.  The
+ColumnSize parameter should be an unsigned integer, not a short.  From the
+declaration from the MySQL ODBC driver:
+
+SQLRETURN SQL_API
+SQLDescribeCol(SQLHSTMT hstmt, SQLUSMALLINT icol,
+	       SQLCHAR FAR *szColName,
+	       SQLSMALLINT cbColNameMax,
+	       SQLSMALLINT FAR *pcbColName,
+	       SQLSMALLINT FAR *pfSqlType,
+	       SQLUINTEGER FAR *pcbColDef,
+	       SQLSMALLINT FAR *pibScale,
+	       SQLSMALLINT FAR *pfNullable)
+
+The attached patches fix this error.