We encountered an issue with the method GetOrdinal on the SQLiteDataReader class. We expected an Exception when calling this method with a not existing column, but instead we got -1 as ordinal position.

According to the API description of System.Data.Common.DbDataReader this call should return an IndexOutOfRangeException instead of -1:
https://docs.microsoft.com/en-us/dotnet/api/system.data.common.dbdatareader.getordinal?view=netframework-4.7.2#System_Data_Common_DbDataReader_GetOrdinal_System_String_

Can you please verify and confirm. And is it possible that this can be fixed?

Regards,

Arjen van Efferen

Change login to "anonymous"

Change mimetype to "text/x-fossil-plain"

Change private_contact to "89d33ccf67ddbabfc8dba1283f5faef1698eb858"

Change severity to "Important"

Change status to "Open"

Change title to:

SqliteDataReader getOrdinal does not conform System.Data.Common.DbDataReader

Change type to "Code_Defect"

This page was generated in about
0.004s by
Fossil version 2.8 [246f249e5a] 2019-01-21 20:07:41