X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fstore_lookup.c;h=302736754ed8434421596b0801d08cc5ad33f27e;hb=5c63464689b66b8b77a2583978ee701fd3246904;hp=9176592723265cd2f5607a8f622473783c8a557b;hpb=a8f40c76a5eccbd5d462a4a221867df93838d932;p=sysdb.git diff --git a/src/core/store_lookup.c b/src/core/store_lookup.c index 9176592..3027367 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);