[mono-android] "Invalid format string" error using rs.GetValue
Jonathan Pryor
jonp at xamarin.com
Wed Jan 11 16:25:45 EST 2012
On Jan 4, 2012, at 4:23 PM, devbuzz wrote:
> The problem is that any call to rs.GetValue fails - I can't see any way I can test the value without reading it?
Unfortunately, I don't see any way either. SqliteDataReader.GetValue(int) looks up the expected column data type, then tries to convert the value to that data type.
The only way I can think of to override this behavior is to use e.g. SqliteDataReader.GetString(int), and I can't easily determine if this will work w/o testing it. :-(
- Jon
More information about the Monodroid
mailing list