I have a sqlite table that has a DATE column (I am 100% positive that all of the values are valid). When I try to do a .Fill into a data table, I get the exception "String was not recognized as a valid DateTime."
at System.DateTimeParse.ParseExactMultiple(String s, String[ formats, DateTimeFormatInfo dtfi, DateTimeStyles style)
at System.DateTime.ParseExact(String s, String[ formats, IFormatProvider provider, DateTimeStyles style)
at System.Data.SQLite.SQLiteConvert.ToDateTime(String dateText)
at System.Data.SQLite.SQLite3.GetDateTime(SQLiteStatement stmt, Int32 index)
at System.Data.SQLite.SQLite3.GetValue(SQLiteStatement stmt, Int32 index, SQLiteType typ)
at System.Data.SQLite.SQLiteDataReader.GetValue(Int32 i)
at System.Data.SQLite.SQLiteDataReader.GetValues(Object[ values)
I would expect this to not error out and the result to be DBNull in that particular row/column, am I mistaken?
I am using VS2010 B2 and am using the build that for this version of the IDE.
[UPDATE] I did a little more digging and it turns out that if I am selecting 10 columns and the 3rd column is of type DATE, all columns from 3 to 10 come back with null values.