summaryrefslogtreecommitdiff
path: root/nonprism/banshee/sqlite_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nonprism/banshee/sqlite_fix.patch')
-rw-r--r--nonprism/banshee/sqlite_fix.patch11
1 files changed, 6 insertions, 5 deletions
diff --git a/nonprism/banshee/sqlite_fix.patch b/nonprism/banshee/sqlite_fix.patch
index 880f6ed9f..7dfa53817 100644
--- a/nonprism/banshee/sqlite_fix.patch
+++ b/nonprism/banshee/sqlite_fix.patch
@@ -124,7 +124,7 @@ diff --git a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs b
index e9bbbf5..3ae0728 100644
--- a/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs
+++ b/src/Core/Banshee.Services/Banshee.Database/BansheeDbConnection.cs
-@@ -52,6 +52,16 @@ namespace Banshee.Database
+@@ -52,6 +52,20 @@ namespace Banshee.Database
get { return configuration; }
}
@@ -132,7 +132,11 @@ index e9bbbf5..3ae0728 100644
+ public bool LikelihoodSupport {
+ get {
+ if (!likelihood_support.HasValue) {
-+ likelihood_support = Query<bool> ("SELECT sqlite_version () >= '3.8.1'");
++ // emulate the SQLITE_VERSION_NUMBER macro
++ string[] v = Query<string> ("SELECT sqlite_version ()").Split ('.');
++ likelihood_support = (Int32.Parse (v[0]) * 1000000 +
++ Int32.Parse (v[1]) * 1000 +
++ Int32.Parse (v[2])) >= 3008001;
+ }
+ return likelihood_support.Value;
+ }
@@ -140,7 +144,4 @@ index e9bbbf5..3ae0728 100644
+
public BansheeDbConnection () : this (DatabaseFile)
{
- validate_schema = ApplicationContext.CommandLine.Contains ("validate-db-schema");
---
-cgit v0.10.1