[Mono-bugs] [Bug 73940][Wis] Changed - GetOrdinal() method of OdbcDataReader is Case Sensitive
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Mar 2005 17:13:24 -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.27174 2005-03-21 17:13:24.000000000 -0500
@@ -2,13 +2,13 @@
Product: Mono: Class Libraries
Version: 1.1
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Sys.Data
AssignedTo: mono-bugs@ximian.com
ReportedBy: dru@druware.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -38,6 +38,23 @@
How often does this happen?
every time
Additional Information:
Should be a quick fix.
+
+------- Additional Comments From dru@druware.com 2005-03-21 17:13 -------
+Replacing the ColIndex function in OdbcDataReader.cs with the following:
+
+ private int ColIndex(string colname)
+ {
+ int i=0;
+ foreach (OdbcColumn col in cols)
+ {
+ if (col != null && String.Compare(col.ColumnName, colname, true))
+ return i;
+ i++;
+ }
+ return -1;
+ }
+
+resolves the bug.