I use SQLite to store some data. The primary database is on the NAS (Debian Lenny, 2.6.15, armv4l), because the NAS runs a script that updates data every day. A typical "select * from tableX" looks like this:
2010-12-28|20|62.09|25170.0 2010-12-28|21|49.28|23305.7 2010-12-28|22|48.51|22051.1 2010-12-28|23|47.17|21809.9
When I copy the database to my main computer (Mac OS X) and run the same SQL query, the output is:
2010-12-28|20|1.08115035175016e-160|25170.0 2010-12-28|21|2.39343503830763e-259|-9.25596535779558e+61 2010-12-28|22|-1.02951149572792e-86|1.90359837597183e+185 2010-12-28|23|-1.10707273937033e-234|-2.35343828462275e-185
The third and fourth columns are of type REAL. An interesting fact: when the numbers are integers (that is, they end with ".0"), there is no difference between the two bases. In all other cases, the differences ... hmm ... surprising? I can not find the template.
If anyone has a key - please share!
PS: sqlite3 -version Debian output: 3.6.21 (lenny-backports) Mac OS X: 3.6.12 (10.6)
sql cross-platform sqlite
pruefsumme
source share