index a64c22094b539574c7158bd2e11e1bd2556ad849..3db771bc070ddbc5382128aea1ea3558642824dd 100644 (file)
--- a/src/core/store-private.h
+++ b/src/core/store-private.h
MATCHER_REGEX,
MATCHER_NREGEX,
MATCHER_ISNULL,
+ MATCHER_ISNNULL,
};
#define MATCHER_SYM(t) \
: ((t) == MATCHER_REGEX) ? "=~" \
: ((t) == MATCHER_NREGEX) ? "!~" \
: ((t) == MATCHER_ISNULL) ? "IS NULL" \
+ : ((t) == MATCHER_ISNNULL) ? "IS NOT NULL" \
: "UNKNOWN")
/* match the name of something */
typedef struct {
sdb_store_matcher_t super;
- char *attr_name; /* we only support matching attributes */
+ sdb_store_expr_t *expr;
} isnull_matcher_t;
#define ISNULL_M(m) ((isnull_matcher_t *)(m))