* OdbcDataReader.cs: GetOrdinal need not check for
currentRow. Return -1 if column name is not found.
fixes bug #71261. Thanks to patch given by "Appasamy T"
<appasamy@rediffmail.com>.
svn path=/trunk/mcs/; revision=39093
+2005-01-18 Sureshkumar T <tsureshkumar@novell.com>
+
+ * OdbcDataReader.cs: GetOrdinal need not check for
+ currentRow. Return -1 if column name is not found.
+
+ fixes bug #71261. Thanks to patch given by "Appasamy T"
+ <appasamy@rediffmail.com>.
+
2005-01-13 Sureshkumar T <tsureshkumar@novell.com>
* OdbcDataReader.cs: Implement NextResultSet for multiple result
return i;
i++;
}
- return 0;
+ return -1;
}
// Dynamically load column descriptions as needed.
public int GetOrdinal (string name)
{
- if (currentRow == -1)
- throw new IndexOutOfRangeException ();
-
int i=ColIndex(name);
if (i==-1)