[tracker] libtracker-fts: Simplify virtual table creation



commit 7add0c2889a0aa5abe2b8838b9976ea3e687fee7
Author: Jürg Billeter <j bitron ch>
Date:   Thu Jan 7 12:20:42 2010 +0100

    libtracker-fts: Simplify virtual table creation
    
    Specifying property columns is not necessary anymore.

 src/libtracker-fts/tracker-fts.c |   28 +---------------------------
 1 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index 7fac4ee..f9d55ec 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -7797,31 +7797,5 @@ tracker_fts_get_drop_fts_table_query (void)
 gchar *
 tracker_fts_get_create_fts_table_query (void)
 {
-	GString    *sql;
-	TrackerProperty	  **properties, *property;
-	gboolean first;
-        guint i, n_properties;
-
-	sql = g_string_new ("CREATE VIRTUAL TABLE fulltext.fts USING trackerfts (");
-
-	first = TRUE;
-	properties = tracker_ontology_get_properties (&n_properties);
-
-        for (i = 0; i < n_properties; i++) {
-                property = properties[i];
-
-		if (tracker_property_get_data_type (property) == TRACKER_PROPERTY_TYPE_STRING &&
-		    tracker_property_get_fulltext_indexed (property)) {
-			if (first) {
-				first = FALSE;
-			} else {
-				g_string_append (sql, ", ");
-			}
-			g_string_append_printf (sql, "\"%s\"", tracker_property_get_name (property));
-		}
-	}
-
-	g_string_append (sql, ")");
-
-	return g_string_free (sql, FALSE);
+	return g_strdup ("CREATE VIRTUAL TABLE fulltext.fts USING trackerfts");
 }



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