[tracker/rss-enclosures] libtracker-data: Bugfix NB#172652, comparing NULL isn't reliable
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-data: Bugfix NB#172652, comparing NULL isn't reliable
- Date: Sat, 26 Jun 2010 23:15:15 +0000 (UTC)
commit dd4bc1f8760c0739c44ee6f766e44033bcec33a3
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Jun 7 17:15:18 2010 +0300
libtracker-data: Bugfix NB#172652, comparing NULL isn't reliable
src/libtracker-data/tracker-sparql-expression.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-expression.vala b/src/libtracker-data/tracker-sparql-expression.vala
index 784520a..0d3611c 100644
--- a/src/libtracker-data/tracker-sparql-expression.vala
+++ b/src/libtracker-data/tracker-sparql-expression.vala
@@ -784,7 +784,7 @@ class Tracker.Sparql.Expression : Object {
return result;
} else {
// resource
- sql.append ("(SELECT ID FROM Resource WHERE Uri = ?)");
+ sql.append ("COALESCE((SELECT ID FROM Resource WHERE Uri = ?), 0)");
var binding = new LiteralBinding ();
binding.literal = uri;
query.bindings.append (binding);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]