[tracker/sparql-update] squash with prev
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sparql-update] squash with prev
- Date: Wed, 9 Mar 2011 10:55:48 +0000 (UTC)
commit 9d35fd164b5ead7d734c12655435840798ce08ab
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Mar 9 11:55:39 2011 +0100
squash with prev
src/libtracker-data/tracker-data-update.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index f276630..98309aa 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -783,6 +783,9 @@ tracker_data_resource_buffer_flush (GError **error)
"DELETE FROM \"%s\" WHERE ID = ?",
table_name);
+ param = 0;
+ tracker_db_statement_bind_int (stmt, param++, resource_buffer->id);
+
tracker_db_statement_execute (stmt, &actual_error);
g_object_unref (stmt);
@@ -791,18 +794,6 @@ tracker_data_resource_buffer_flush (GError **error)
return;
}
- statement_bind_gvalue (stmt, ¶m, &property->value);
-
- stmt = tracker_db_interface_create_statement (iface, TRACKER_DB_STATEMENT_CACHE_TYPE_UPDATE, &actual_error,
- "UPDATE \"%s\" SET \"%s\" = ? WHERE ID = ?",
- table_name,
- property->name);
-
- if (actual_error) {
- g_propagate_error (error, actual_error);
- return;
- }
-
/* TODO: loop over set */
for (y = 0; y < 0; y++) {
if (property->date_time) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]