tracker r3013 - in trunk: . data/db src/libtracker-db src/tracker-indexer
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3013 - in trunk: . data/db src/libtracker-db src/tracker-indexer
- Date: Tue, 3 Mar 2009 18:04:19 +0000 (UTC)
Author: mr
Date: Tue Mar 3 18:04:19 2009
New Revision: 3013
URL: http://svn.gnome.org/viewvc/tracker?rev=3013&view=rev
Log:
* data/db/sqlite-service.sql:
* src/libtracker-db/tracker-db-manager.c: Remove collation from
Services table.
Modified:
trunk/ChangeLog
trunk/data/db/sqlite-service.sql
trunk/src/libtracker-db/tracker-db-manager.c
trunk/src/tracker-indexer/tracker-indexer.c
Modified: trunk/data/db/sqlite-service.sql
==============================================================================
--- trunk/data/db/sqlite-service.sql (original)
+++ trunk/data/db/sqlite-service.sql Tue Mar 3 18:04:19 2009
@@ -3,8 +3,8 @@
(
ID Integer primary key not null,
ServiceTypeID Integer default 0, /* see ServiceTypes table above for ID values. A value of 0 indicates a group resource rather than a service */
- Path Text not null COLLATE UTF8, /* non-file objects should use service name here */
- Name Text default ' ' COLLATE UTF8, /* name of file or object - the combination path and name must be unique for all objects */
+ Path Text not null, /* non-file objects should use service name here */
+ Name Text default ' ', /* name of file or object - the combination path and name must be unique for all objects */
Enabled Integer default 1,
Mime Text default ' ',
Size Integer default 0,
Modified: trunk/src/libtracker-db/tracker-db-manager.c
==============================================================================
--- trunk/src/libtracker-db/tracker-db-manager.c (original)
+++ trunk/src/libtracker-db/tracker-db-manager.c Tue Mar 3 18:04:19 2009
@@ -1258,28 +1258,6 @@
return db_mime_query (iface, "GetXesamMimePrefixForServiceId", service_id);
}
-/* Sqlite utf-8 user defined collation sequence */
-static gint
-utf8_collation_func (gchar *str1,
- gint len1,
- gchar *str2,
- int len2)
-{
- gchar *word1, *word2;
- gint result;
-
- /* Collate words */
- word1 = g_utf8_collate_key_for_filename (str1, len1);
- word2 = g_utf8_collate_key_for_filename (str2, len2);
-
- result = strcmp (word1, word2);
-
- g_free (word1);
- g_free (word2);
-
- return result;
-}
-
/* Converts date/time in UTC format to ISO 8160 standardised format for display */
static GValue
function_date_to_str (TrackerDBInterface *interface,
@@ -1703,12 +1681,6 @@
if (add_functions) {
g_message (" Adding functions (FormatDate, etc)");
- if (!tracker_db_interface_sqlite_set_collation_function (TRACKER_DB_INTERFACE_SQLITE (iface),
- "UTF8",
- utf8_collation_func)) {
- g_critical ("Collation sequence failed");
- }
-
/* Create user defined functions that can be used in sql */
tracker_db_interface_sqlite_create_function (iface,
"FormatDate",
Modified: trunk/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-indexer.c (original)
+++ trunk/src/tracker-indexer/tracker-indexer.c Tue Mar 3 18:04:19 2009
@@ -1428,13 +1428,13 @@
dirname,
basename);
- /*
- * "metadata" (new metadata) contains embedded props and can contain
+ /* "metadata" (new metadata) contains embedded props and can contain
* non-embedded properties with default values! Dont overwrite those
* in the DB if they already has a value.
*
* 1) Remove all old embedded metadata from index and DB
- * 2) Remove from new metadata all non embedded properties that already have value.
+ * 2) Remove from new metadata all non embedded
+ * properties that already have value.
* 3) Save the remain new metadata.
*/
old_metadata_emb = tracker_data_query_metadata (service, id, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]