diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y
index 85fe8c4a108b6a34864b6e778a851664ecfdd053..57174290b00dc97c00aa50d9e1d6841ff45f3dad 100644 (file)
--- a/src/frontend/grammar.y
+++ b/src/frontend/grammar.y
* Parse matchers comparing object attributes with a value.
*/
compare_matcher:
+ ':' IDENTIFIER op expression
+ {
+ $$ = sdb_store_matcher_parse_field_cmp($2, $3, $4);
+ free($2); $2 = NULL;
+ sdb_object_deref(SDB_OBJ($4));
+ }
+ |
IDENTIFIER op expression
{
$$ = sdb_store_matcher_parse_cmp($1, NULL, $2, $3);