[geary/ricotz/vala: 5/5] engine: Don't use custom binding of SQLITE_OPEN_URI
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/ricotz/vala: 5/5] engine: Don't use custom binding of SQLITE_OPEN_URI
- Date: Tue, 30 Nov 2021 15:23:07 +0000 (UTC)
commit d5536ecf254e284f5d2ef2d7804a87ecf49706c6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Apr 27 08:50:47 2021 +0200
engine: Don't use custom binding of SQLITE_OPEN_URI
src/engine/db/db-database.vala | 2 +-
src/engine/db/db.vala | 3 ---
2 files changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/engine/db/db-database.vala b/src/engine/db/db-database.vala
index df5bed216..6121d0998 100644
--- a/src/engine/db/db-database.vala
+++ b/src/engine/db/db-database.vala
@@ -230,7 +230,7 @@ public class Geary.Db.Database : Context {
sqlite_flags |= Sqlite.OPEN_CREATE;
if (this.file == null) {
- sqlite_flags |= SQLITE_OPEN_URI;
+ sqlite_flags |= Sqlite.OPEN_URI;
}
DatabaseConnection cx = new DatabaseConnection(
diff --git a/src/engine/db/db.vala b/src/engine/db/db.vala
index a79f4ae51..92891914f 100644
--- a/src/engine/db/db.vala
+++ b/src/engine/db/db.vala
@@ -22,9 +22,6 @@
* [[http://code.google.com/p/sqlheavy/|SQLHeavy]].
*/
-// Work around missing const in sqlite3.vapi. See Bug 795627.
-extern const int SQLITE_OPEN_URI;
-
[CCode (cheader_filename = "sqlite3.h")]
extern int sqlite3_enable_shared_cache(int enabled);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]