Code

store, frontend: Switch from <obj>.name to <obj>.
[sysdb.git] / src / frontend / grammar.y
index 2173e6df1b383f1ce2ce58f849cb70c37aa021c2..d5054854c3153a1298a238ad1bee2026a965cd51 100644 (file)
@@ -302,6 +302,13 @@ matcher:
  * Parse matchers comparing object attributes with a value.
  */
 compare_matcher:
+       IDENTIFIER op data
+               {
+                       $$ = sdb_store_matcher_parse_cmp($1, NULL, $2, &$3);
+                       free($1); $1 = NULL;
+                       sdb_data_free_datum(&$3);
+               }
+       |
        IDENTIFIER '.' IDENTIFIER op data
                {
                        $$ = sdb_store_matcher_parse_cmp($1, $3, $4, &$5);