From 8e0c01ef706c4a10ad43617ee462b83d07dccb4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 8 Oct 2018 19:03:41 +0200 Subject: [PATCH 1/6] SQLite 3.25.2 --- SQLiteCustom/src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQLiteCustom/src b/SQLiteCustom/src index 06ba9bdd8..9d6566834 160000 --- a/SQLiteCustom/src +++ b/SQLiteCustom/src @@ -1 +1 @@ -Subproject commit 06ba9bdd8961cf37724e895df7c8ed1ea1fd5dd4 +Subproject commit 9d6566834cfe99c85ea8afb742081a4152c47842 From 7bdbfb77ddadc19ae9f42c300d64b41f3a39a9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 8 Oct 2018 19:11:24 +0200 Subject: [PATCH 2/6] Upgrade SQLite version in documentation --- Documentation/CustomSQLiteBuilds.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/CustomSQLiteBuilds.md b/Documentation/CustomSQLiteBuilds.md index b7ac3d9ff..72675db4a 100644 --- a/Documentation/CustomSQLiteBuilds.md +++ b/Documentation/CustomSQLiteBuilds.md @@ -3,7 +3,7 @@ Custom SQLite Builds By default, GRDB uses the version of SQLite that ships with the target operating system. -**You can build GRDB with a custom build of [SQLite 3.24.0](https://www.sqlite.org/changes.html).** +**You can build GRDB with a custom build of [SQLite 3.25.2](https://www.sqlite.org/changes.html).** A custom SQLite build can activate extra SQLite features, and extra GRDB features as well, such as support for the [FTS5 full-text search engine](../../../#full-text-search), and [SQLite Pre-Update Hooks](../../../#support-for-sqlite-pre-update-hooks). diff --git a/README.md b/README.md index f63f054f4..23a89feb7 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,7 @@ Installation See [Encryption](#encryption) for the installation procedure of GRDB with SQLCipher. -See [Custom SQLite builds](Documentation/CustomSQLiteBuilds.md) for the installation procedure of GRDB with a customized build of SQLite 3.24.0. +See [Custom SQLite builds](Documentation/CustomSQLiteBuilds.md) for the installation procedure of GRDB with a customized build of SQLite 3.25.2. See [Enabling FTS5 Support](#enabling-fts5-support) for the installation procedure of GRDB with support for the FTS5 full-text engine. From 3be3a51cdca6c3e2fdf308cc846fb8798fd797e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 8 Oct 2018 19:13:12 +0200 Subject: [PATCH 3/6] Fix a compiler warning --- Tests/GRDBTests/DatabasePoolConcurrencyTests.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/GRDBTests/DatabasePoolConcurrencyTests.swift b/Tests/GRDBTests/DatabasePoolConcurrencyTests.swift index a56830c49..a28376b07 100644 --- a/Tests/GRDBTests/DatabasePoolConcurrencyTests.swift +++ b/Tests/GRDBTests/DatabasePoolConcurrencyTests.swift @@ -947,7 +947,6 @@ class DatabasePoolConcurrencyTests: GRDBTestCase { } do { try future.wait() - XCTFail("Expected error") } catch let error as DatabaseError { XCTAssertEqual(error.resultCode, .SQLITE_BUSY) XCTAssertEqual(error.message!, "database is locked") From dadc5c3c58713c4a511022a31921296ae113470e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 8 Oct 2018 19:16:54 +0200 Subject: [PATCH 4/6] Fix a test for syntax error that fails with SQLite 3.25.2 --- Tests/GRDBTests/DatabaseLogErrorTests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/GRDBTests/DatabaseLogErrorTests.swift b/Tests/GRDBTests/DatabaseLogErrorTests.swift index 557dd4f52..9ff05cb7b 100644 --- a/Tests/GRDBTests/DatabaseLogErrorTests.swift +++ b/Tests/GRDBTests/DatabaseLogErrorTests.swift @@ -12,9 +12,11 @@ class DatabaseLogErrorTests: GRDBTestCase { func testErrorLog() throws { let dbQueue = try makeDatabaseQueue() dbQueue.inDatabase { db in - _ = try? db.execute("That's not SQL.") + _ = try? db.execute("Abracadabra") } XCTAssertEqual(lastResultCode!, ResultCode.SQLITE_ERROR) - XCTAssertEqual(lastMessage!, "near \"That\": syntax error") + // Don't check for exact error message because it depends on SQLite version + XCTAssert(lastMessage!.contains("syntax error")) + XCTAssert(lastMessage!.contains("Abracadabra")) } } From 9ad476235d1ed83a0a58b7fd9a45c3c490ffafe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 8 Oct 2018 19:17:02 +0200 Subject: [PATCH 5/6] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bed7a1c4e..8d5950fce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ This release comes with **Association Aggregates**. They let you compute values - [#422](https://github.com/groue/GRDB.swift/pull/422): Refining Association Requests - [#423](https://github.com/groue/GRDB.swift/pull/423): Association Aggregates +- [#428](https://github.com/groue/GRDB.swift/pull/428): Upgrade custom SQLite builds to version 3.25.2 ### Documentation Diff From 697709c82f0728a60b428927c02fcd0c0c40bc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 8 Oct 2018 19:19:45 +0200 Subject: [PATCH 6/6] thank you note --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d5950fce..ee49aa995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ This release comes with **Association Aggregates**. They let you compute values - [#422](https://github.com/groue/GRDB.swift/pull/422): Refining Association Requests - [#423](https://github.com/groue/GRDB.swift/pull/423): Association Aggregates -- [#428](https://github.com/groue/GRDB.swift/pull/428): Upgrade custom SQLite builds to version 3.25.2 +- [#428](https://github.com/groue/GRDB.swift/pull/428): Upgrade custom SQLite builds to version 3.25.2 (thanks to [@swiftlyfalling](https://github.com/swiftlyfalling/SQLiteLib)) ### Documentation Diff