[Mono-bugs] [Bug 46800][Wis] New - OracleDataReader.GetOrdinal does not work without prior call to GetSchemaTable

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 23 Jul 2003 12:20:31 -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 joergr@voelcker.com.

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

--- shadow/46800	Wed Jul 23 12:20:31 2003
+++ shadow/46800.tmp.19535	Wed Jul 23 12:20:31 2003
@@ -0,0 +1,29 @@
+Bug#: 46800
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: OracleDataReader.GetOrdinal does not work without prior call to GetSchemaTable 
+
+Description of Problem:
+OracleDataReader.GetOrdinal depends of the member variable schemaTable
+which is only filled by GetSchemaTable. So GetOrdinal always throws an
+exception when GetSchemaTable is not called with the reader first.
+
+
+How often does this happen? 
+Always.
+
+Additional Information:
+I have attached a patch which uses statement.GetParameter(i).GetName() instead.