luan-nvg / csharp-sqlite

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

Incorrect conversion of values with affinity REAL to string. #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Code version:
changeset:   66:9f7331de6345
date:        Fri Jul 08 09:09:54 2011 -0700

Conditions:
1. table has column of REAL type
2. value obtained using sqlite3_column_text

Problem: 
sqlite3_column_text returns some strange values that depend of current culture.

Testcase is attached.

Testcase output:

invariant culture
value: 0.1
value: 1E-09.0
ru
value: 0,1.0
value: 1E-09.0

Values returned by native library:

invariant culture
value: 0.1
value: 1.0e-09
ru
value: 0.1
value: 1.0e-09

Original issue reported on code.google.com by iyu...@gmail.com on 17 Jul 2011 at 1:51

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by noah.hart@gmail.com on 22 Jul 2011 at 4:09

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 498d214eef72.

Original comment by noah.hart@gmail.com on 26 Aug 2011 at 7:04