Documents: Integers are getting corrupted
Bug #1181359 reported by
Martin Borho
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB Qt/ QML |
Fix Released
|
Undecided
|
Unassigned | ||
qtbase-opensource-src (Ubuntu) |
Fix Released
|
Undecided
|
Timo Jyrinki |
Bug Description
Hi,
when saving a javascript object with an integer, the integer is not the same after retrieved from the db.
Saving {test_id:2911298} will result in {test_id:2911300}. I'm using 0.1.4bzr89quantal0
Example:
import QtQuick 2.0
import U1db 1.0 as U1db
Item{
id: u1dbBug
U1db.Database {
id: testDatabase
path: "test-database"
}
function testFunction() {
var docs = testDatabase.
for(var x=0;x<docs.
var doc = testDatabase.
}
}
}
Related branches
lp://qastaging/~kalikiana/u1db-qt/numbers
On hold
for merging
into
lp://qastaging/u1db-qt
- U1DB Qt developers: Pending requested
-
Diff: 16 lines (+6/-0)1 file modifiedtests/tst_database.qml (+6/-0)
lp://qastaging/~timo-jyrinki/ubuntu/saucy/qtbase-opensource-src/fix_number_precision
- Ubuntu branches: Pending requested
-
Diff: 174 lines (+151/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/fix_number_precision_qjsondocument.patch_8e8becdc.patch (+143/-0)
debian/patches/series (+1/-0)
Changed in u1db-qt: | |
status: | New → Confirmed |
Changed in qtbase-opensource-src (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Timo Jyrinki (timo-jyrinki) |
Changed in u1db-qt: | |
milestone: | none → 1.0 |
Changed in u1db-qt: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Looks like 2911298 is stored in Sqlite as 2.9113e+06 and rounded when it comes out.