abouffard/csharp-sqlite

SqliteDataReader.GetFieldType return a incorrect type

Opened this issue · 0 comments

What steps will reproduce the problem?
Execute query to a table with a column of decimal type, which return a row with 
values equils to zero.
SqliteDataReader.GetFieldType will return incorrect type.

What is the expected output?
Int64

What do you see instead?
decimal or float

What version of the product are you using? On what operating system?
3.7.7.1, Silverlight

Please provide any additional information below.
Some ORM cache types of returned values. In next query ORM will think what 
column type is long and will invoke SqliteDataReader.GetInt64() instead of 
GetDouble().

Original issue reported on code.google.com by shakirov...@gmail.com on 26 Dec 2012 at 2:15