[tracker/wip/carlosg/update-perf: 43/72] libtracker-sparql/core: Use GType directly
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/update-perf: 43/72] libtracker-sparql/core: Use GType directly
- Date: Tue, 30 Aug 2022 15:39:41 +0000 (UTC)
commit 0f1071dea1025b4a5b2f8fd340abfa501258f84e
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jul 31 23:53:40 2022 +0200
libtracker-sparql/core: Use GType directly
We no longer have this restriction since we build a monolithic library.
src/libtracker-sparql/core/tracker-data-update.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/core/tracker-data-update.c
b/src/libtracker-sparql/core/tracker-data-update.c
index 17a4e4028..154f37a87 100644
--- a/src/libtracker-sparql/core/tracker-data-update.c
+++ b/src/libtracker-sparql/core/tracker-data-update.c
@@ -28,6 +28,7 @@
#include <libtracker-common/tracker-common.h>
#include <libtracker-sparql/tracker-deserializer-rdf.h>
+#include <libtracker-sparql/tracker-uri.h>
#include "tracker-class.h"
#include "tracker-data-manager.h"
@@ -859,8 +860,7 @@ statement_bind_gvalue (TrackerDBStatement *stmt,
/* String with langtag */
tracker_db_statement_bind_bytes (stmt, (*idx)++, bytes);
}
- } else if (g_strcmp0 (g_type_name (type), "TrackerUri") == 0) {
- /* FIXME: We can't access TrackerUri GType here */
+ } else if (type == TRACKER_TYPE_URI) {
tracker_db_statement_bind_text (stmt, (*idx)++, g_value_get_string (value));
} else {
g_warning ("Unknown type for binding: %s\n", G_VALUE_TYPE_NAME (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]