X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcore%2Fstore_lookup.c;h=6aa4095bc5de2370f965e88500bc01f8c817cc8d;hb=ff53c1c6b145e1a0315ee42d316a858f29f7d0a1;hp=9176592723265cd2f5607a8f622473783c8a557b;hpb=97cbe3c1b122366dcfeed65b039024870857704a;p=sysdb.git diff --git a/src/core/store_lookup.c b/src/core/store_lookup.c index 9176592..6aa4095 100644 --- a/src/core/store_lookup.c +++ b/src/core/store_lookup.c @@ -121,7 +121,7 @@ attr_cmp(sdb_store_obj_t *obj, sdb_store_cond_t *cond, if (! attr) status = INT_MAX; else if (attr->value.type != value.type) - status = INT_MAX; + status = sdb_data_strcmp(&attr->value, &value); else status = sdb_data_cmp(&attr->value, &value); sdb_data_free_datum(&value); @@ -880,7 +880,9 @@ sdb_store_parse_object_type_plural(const char *name) int sdb_store_parse_field_name(const char *name) { - if (! strcasecmp(name, "last_update")) + if (! strcasecmp(name, "name")) + return SDB_FIELD_NAME; + else if (! strcasecmp(name, "last_update")) return SDB_FIELD_LAST_UPDATE; else if (! strcasecmp(name, "age")) return SDB_FIELD_AGE;