[tracker: 2/12] tracker-data-manager: Simplify create_decomposed_metadata_property_table()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 2/12] tracker-data-manager: Simplify create_decomposed_metadata_property_table()
- Date: Sat, 8 May 2021 18:57:32 +0000 (UTC)
commit a5e12d8181ee3f834413a16a1703ac2152766dbf
Author: Daniele Nicolodi <daniele grinta net>
Date: Mon May 3 21:00:05 2021 +0200
tracker-data-manager: Simplify create_decomposed_metadata_property_table()
Drop always false check in create_decomposed_metadata_property_table()
src/libtracker-data/tracker-data-manager.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 21eb1028f..1456ad776 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -2522,12 +2522,10 @@ create_decomposed_metadata_property_table (TrackerDBInterface *iface,
GError *internal_error = NULL;
const char *field_name;
const char *sql_type;
- gboolean not_single, datetime;
+ gboolean datetime;
field_name = tracker_property_get_name (property);
- not_single = !sql_type_for_single_value;
-
switch (tracker_property_get_data_type (property)) {
case TRACKER_PROPERTY_TYPE_STRING:
case TRACKER_PROPERTY_TYPE_LANGSTRING:
@@ -2554,7 +2552,7 @@ create_decomposed_metadata_property_table (TrackerDBInterface *iface,
tracker_property_get_is_new_domain_index (property, service) ||
tracker_property_get_cardinality_changed (property) ||
tracker_property_get_db_schema_changed (property)))) {
- if (not_single || tracker_property_get_multiple_values (property)) {
+ if (tracker_property_get_multiple_values (property)) {
GString *sql = NULL;
GString *in_col_sql = NULL;
GString *sel_col_sql = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]