index 9176592723265cd2f5607a8f622473783c8a557b..6aa4095bc5de2370f965e88500bc01f8c817cc8d 100644 (file)
--- a/src/core/store_lookup.c
+++ b/src/core/store_lookup.c
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);
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;