[tracker] libtracker-data: Fix deleting rows from FTS
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] libtracker-data: Fix deleting rows from FTS
- Date: Thu, 16 Jul 2009 10:07:25 +0000 (UTC)
commit 2aba14c8439b30dcd19304f058efef38b99ca8c0
Author: Jürg Billeter <j bitron ch>
Date: Thu Jul 16 12:07:08 2009 +0200
libtracker-data: Fix deleting rows from FTS
src/libtracker-data/tracker-data-update.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index cf272d6..0cad1bb 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -638,7 +638,7 @@ delete_resource_type (gint resource_id,
g_object_unref (stmt);
/* remove row from class table */
- stmt = tracker_db_interface_create_statement (iface, "DELETE FROM \"%s\" WHERE ID = ?", tracker_class_get_name (cl));
+ stmt = tracker_db_interface_create_statement (iface, "DELETE FROM \"%s\" WHERE rowid = ?", tracker_class_get_name (cl));
tracker_db_statement_bind_int (stmt, 0, resource_id);
tracker_db_statement_execute (stmt, NULL);
g_object_unref (stmt);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]