Code

frontend/grammar: Use '.' instead of ':' to access queryable object fields.
[sysdb.git] / src / frontend / grammar.y
index 08f8414142f58123dd63c9cf7c991d96c6bff5ff..9cf98eef406c2b5ecb54096706fd4abba8849050 100644 (file)
@@ -398,7 +398,7 @@ matcher:
  * Parse matchers comparing object attributes with a value.
  */
 compare_matcher:
-       ':' IDENTIFIER op expression
+       '.' IDENTIFIER op expression
                {
                        $$ = sdb_store_matcher_parse_field_cmp($2, $3, $4);
                        free($2); $2 = NULL;
@@ -481,7 +481,7 @@ expression:
                        sdb_object_deref(SDB_OBJ($3)); $3 = NULL;
                }
        |
-       ':' IDENTIFIER
+       '.' IDENTIFIER
                {
                        int field = sdb_store_parse_field_name($2);
                        free($2); $2 = NULL;