[tracker/rss-enclosures] libtracker-data: Disallow multi-value properties for domain specific indexes



commit c677e790a5c7c7302c3ff3a0ed6eec97fecf16e9
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jul 5 11:09:37 2010 +0200

    libtracker-data: Disallow multi-value properties for domain specific indexes

 src/libtracker-data/tracker-data-manager.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 9c3fb54..62ee5c6 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -551,6 +551,12 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
 			return;
 		}
 
+		if (tracker_property_get_multiple_values (property)) {
+			g_critical ("%s: Property %s has multiple values while trying to add it as tracker:domainIndex in %s, this isn't supported",
+			            ontology_path, object, subject);
+			return;
+		}
+
 		properties = tracker_class_get_domain_indexes (class);
 		while (*properties) {
 			if (property == *properties) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]