Commit f0d0ae2f authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-data: Handle NULLs in update solutions

This broke in commit bb88e1d3, since it is valid for the cursor
to leave the GValue unset on NULLs in the requested column. We
should just forward the NULL as we used to.
parent bcc72347
......@@ -2631,6 +2631,8 @@ get_solution_for_pattern (TrackerSparql *sparql,
g_ascii_dtostr (buf, sizeof (buf),
g_value_get_double (&value));
tracker_solution_add_value (solution, buf);
} else if (G_VALUE_TYPE (&value) == G_TYPE_INVALID) {
tracker_solution_add_value (solution, NULL);
} else {
g_assert_not_reached ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment