[Mono-bugs] [Bug 63539][Min] Changed - OdbcDataReader: TINYINT retrieved as System.Int16 instead of System.Byte

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 26 Aug 2004 13:10:17 -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 sebastien.robitaille@croesus.com.

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

--- shadow/63539	2004-08-26 12:06:17.000000000 -0400
+++ shadow/63539.tmp.20983	2004-08-26 13:10:17.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 63539
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: NOTABUG
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Minor
 Component: Sys.Data
 AssignedTo: tsureshkumar@novell.com                            
 ReportedBy: sebastien.robitaille@croesus.com               
 QAContact: mono-bugs@ximian.com
@@ -92,6 +92,29 @@
 Hi Sebastien,
 
    The actual results are as expected. TINYINT should be returned as
 Int16. 
 
 suresh.
+
+------- Additional Comments From sebastien.robitaille@croesus.com  2004-08-26 13:10 -------
+Hi Suresh,
+
+As far as I know:
+TINYINT is 1 byte long,
+SMALLINT is 2 bytes long and
+INTEGER is 4 bytes long.
+
+(at least on the version of Sybase that I am using).
+So, my guest is that a TINYINT should be mapped in a System.Byte.
+
+Also, if you run the TestTinyIntDataType method (in the bug 
+description) using Microsoft .NET, the result will be a System.Byte.
+
+Are there specs somewhere for that, or is the Microsoft 
+implementation the reference for the Mono ODBC .NET Provider ?
+
+Regards
+Sébas
+
+PS: I really appreciate your effort and rapidity for fixing the bugs 
+I submit. Thanks.