GNOME Bugzilla – Bug 747618
Want IS NULL and IS NOT NULL filters
Last modified: 2015-04-10 13:12:31 UTC
These are useful
Created attachment 301280 [details] [review] Add IS NULL and IS NOT NULL filters
Created attachment 301281 [details] [review] Add test for IS [NOT] NULL filters
Review of attachment 301280 [details] [review]: Please prefix the commit subject with "filter: " Looks fine to commit after that. ::: gom/gom-filter.c @@ +556,3 @@ + case GOM_FILTER_IS_NOT_NULL: + va = g_array_new(FALSE, FALSE, sizeof(GValue)); + g_array_set_clear_func(va, (GDestroyNotify) g_value_unset); That's not necessary though, is it?
Review of attachment 301281 [details] [review]: Looks good.
Review of attachment 301280 [details] [review]: ::: gom/gom-filter.c @@ +556,3 @@ + case GOM_FILTER_IS_NOT_NULL: + va = g_array_new(FALSE, FALSE, sizeof(GValue)); + g_array_set_clear_func(va, (GDestroyNotify) g_value_unset); Its what GOM_FILTER_SQL does if there are no values.