[Mono-bugs] [Bug 73940][Wis] New - GetOrdinal() method of OdbcDataReader is Case Sensitive
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Mar 2005 13:42:22 -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 dru@druware.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73940
--- shadow/73940 2005-03-21 13:42:22.000000000 -0500
+++ shadow/73940.tmp.23698 2005-03-21 13:42:22.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 73940
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: dru@druware.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: GetOrdinal() method of OdbcDataReader is Case Sensitive
+
+When using the the OdbcDataReader.GetOrdinal() method, the column name is case sensitive on
+Mono but is not on MS.NET.
+
+Steps to reproduce the problem:
+1. Create a table named test with column TestColumn and populate with data
+2. Create and ODBC DSN for the previous table / db
+3. open a connection, run a query and try to 'GetOrdinal("testcolumn");'
+4. watch mono exception, with index out of bounds
+
+Actual Results:
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
+in <0x0007c> System.Data.Odbc.OdbcDataReader:GetOrdinal (string)
+in <0x00084> (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcDataReader:
+GetOrdinal (string)
+in <0x000c8> testOdbc.Class1:Main (string[])
+
+
+Expected Results:
+Returns an integer value of the ordinal of the column in the recordset
+
+How often does this happen?
+every time
+
+Additional Information:
+Should be a quick fix.