IDbReader throwing exceptions for existing columns
问题 I'm trying to reader values from a System.Data.Odbc.OdbcDataReader. The problem with it is that it simply doesn't work. When I try to get a value from an existing column (field), it throws an exception. In my cae, FieldCount is 8 , but, for instance, a if I invoke reader.IsDBNull(4), it throws. For values column ids from 0 to 2, it retrieves the correct value. But reader[3] to reader[7], an exception is thrown with no information of what happened. Even worse, this code (GetName) also throws