Skip to content

Commit c1f6e0b

Browse files
authored
CBL-7989: Upgrade SQLite to 3.53.0 (#2485)
* CBL-7989: Upgrade SQLite to 3.53.0 - Adjusted test, "SQLite numeric ops", because of the new version increased numerical precision. - Patched in commit c78e727, which was required for the SQLite v3.51.3 upgrade on the master branch. (We are upgrading from 3.50.3) * update fleece submodule
1 parent d9fda90 commit c1f6e0b

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

LiteCore/Query/SQLiteFleeceEach.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ namespace litecore {
182182
void resetScope() noexcept {
183183
if ( _scope ) {
184184
auto data = _scope->data().buf;
185+
if ( !_scopeDataIsCopied ) _scope->dontValidate();
185186
_scope.reset();
186187
if ( _scopeDataIsCopied ) {
187188
::free((void*)data);

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.50.3 ]
34+
versions: [ 3.53.0 ]
3535
src-path: vendor/SQLiteCpp/sqlite3
3636
parent-repo: vendor/SQLiteCpp
3737
sqlitecpp:

vendor/fleece

0 commit comments

Comments
 (0)