[Mono-bugs] [Bug 55030][Blo] New - The oracle client fails reading a big number

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 1 Mar 2004 11:58:16 -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 turchi@ntsc.com.

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

--- shadow/55030	2004-03-01 11:58:16.000000000 -0500
+++ shadow/55030.tmp.15177	2004-03-01 11:58:16.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 55030
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Fedora Core 1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: turchi@ntsc.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The oracle client fails reading a big number
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Reading a number from Oracle with a value over 32 bit capacity, the client
+library 
+
+(/cvs/mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciDefineHandle.cs:249)
+
+attempt a conversion into an Int32 object, without size checking.
+
+Steps to reproduce the problem:
+1. create a table with a NUMBER(12) field 
+2. insert a row with a 5000000000 value in that field
+3. attempt to read vi mono that row
+
+Actual Results:
+
+Exception: System.OverflowException: Number overflow
+
+Expected Results:
+
+5000000000
+
+How often does this happen? 
+
+Every time
+
+Additional Information:
+
+There can be others similar errors in the library.
+
+P.S.: I'm sorry, my english is alpha version.