Code

store: Let sdb_store_parse_object_type_plural support attributes.
[sysdb.git] / src / frontend / grammar.y
index 722796c282726e5bc1f257bb6b6974f032064920..435b24719f3ad09173edd9463df6f664ce727c71 100644 (file)
@@ -293,7 +293,7 @@ list_statement:
        LIST IDENTIFIER filter_clause
                {
                        int type = sdb_store_parse_object_type_plural($2);
-                       if (type < 0) {
+                       if ((type < 0) || (type == SDB_ATTRIBUTE)) {
                                char errmsg[strlen($2) + 32];
                                snprintf(errmsg, sizeof(errmsg),
                                                YY_("unknown data-source %s"), $2);