askbook / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

SqliteDataReader.GetFieldType return a incorrect type #175

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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