[tracker] SPARQL: Revert the dropped rdfs:Resource table
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] SPARQL: Revert the dropped rdfs:Resource table
- Date: Fri, 28 Aug 2009 09:59:52 +0000 (UTC)
commit f8f225c520c8ae092a811737730f459ab8642ef0
Author: Jürg Billeter <j bitron ch>
Date: Fri Aug 28 11:58:21 2009 +0200
SPARQL: Revert the dropped rdfs:Resource table
This fixes WHERE { ?s a rdfs:Resource } queries.
src/libtracker-data/tracker-sparql-query.vala | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 9ee00c1..1434005 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -2074,13 +2074,6 @@ public class Tracker.SparqlQuery : Object {
throw new SparqlError.UNKNOWN_CLASS ("Unknown class `%s'".printf (object));
}
db_table = cl.name;
-
- if (db_table == "rdfs:Resource") {
- // all resources are in rdfs:Resource table, no need to check
- // add dummy expression to SQL
- sql.append ("1, ");
- return;
- }
} else if (prop == null) {
if (current_predicate == "http://www.tracker-project.org/ontologies/fts#match") {
// fts:match
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]