Skip to content

Commit cabd447

Browse files
authored
CBL-8229: Upgrade SQLite to 3.53.0 (#2473)
Adjusted test, "SQLite numeric ops", because of the new version increased numerical precision.
1 parent 4ae661c commit cabd447

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

LiteCore/tests/SQLiteFunctionsTest.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ N_WAY_TEST_CASE_METHOD(SQLiteFunctionsTest, "SQLite numeric ops", "[Query]") {
283283
insert("one", "{\"hey\": 2.5}");
284284

285285

286-
CHECK(query("SELECT sqrt(fl_value(kv.body, 'hey')) FROM kv") == (vector<string>{"2.0", "1.58113883008419"}));
286+
CHECK(query("SELECT sqrt(fl_value(kv.body, 'hey')) FROM kv") == (vector<string>{"2.0", "1.5811388300841898"}));
287287
CHECK(query("SELECT log(fl_value(kv.body, 'hey')) FROM kv")
288-
== (vector<string>{"0.602059991327962", "0.397940008672038"}));
288+
== (vector<string>{"0.6020599913279624", "0.3979400086720376"}));
289289
CHECK(query("SELECT ln(fl_value(kv.body, 'hey')) FROM kv")
290-
== (vector<string>{"1.38629436111989", "0.916290731874155"}));
290+
== (vector<string>{"1.3862943611198906", "0.91629073187415511"}));
291291
CHECK(query("SELECT exp(fl_value(kv.body, 'hey')) FROM kv")
292-
== (vector<string>{"54.5981500331442", "12.1824939607035"}));
292+
== (vector<string>{"54.598150033144236", "12.182493960703473"}));
293293
CHECK(query("SELECT power(fl_value(kv.body, 'hey'), 3) FROM kv") == (vector<string>{"64.0", "15.625"}));
294294
CHECK(query("SELECT floor(fl_value(kv.body, 'hey')) FROM kv") == (vector<string>{"4.0", "2.0"}));
295295
CHECK(query("SELECT ceil(fl_value(kv.body, 'hey')) FROM kv") == (vector<string>{"4.0", "3.0"}));

jenkins/couchbase-lite-core-black-duck-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ components:
3131
src-path: vendor/sockpp
3232
sqlite:
3333
bd-id: 302ca56c-2cf6-4cfd-9173-94c1ee2a44f7
34-
versions: [ 3.51.3 ]
34+
versions: [ 3.53.0 ]
3535
src-path: vendor/SQLiteCpp/sqlite3
3636
parent-repo: vendor/SQLiteCpp
3737
sqlitecpp:

0 commit comments

Comments
 (0)