Code

data: sdb_data_strcmp supports arrays because sdb_data_format supports it.
authorSebastian Harl <sh@tokkee.org>
Wed, 11 Mar 2015 18:59:13 +0000 (19:59 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 11 Mar 2015 18:59:13 +0000 (19:59 +0100)
src/core/data.c

index 914946fbec6761d3e7b4345742ddbd63668106c1..2b1cff2ae066316cb1628a7037fa3f250ef21496 100644 (file)
@@ -668,12 +668,6 @@ sdb_data_strcmp(const sdb_data_t *d1, const sdb_data_t *d2)
        char d1_str[sdb_data_strlen(d1) + 1];
        char d2_str[sdb_data_strlen(d2) + 1];
 
-       if ((d1->type & SDB_TYPE_ARRAY) || (d2->type & SDB_TYPE_ARRAY)) {
-               /* TODO */
-               errno = ENOTSUP;
-               return -1;
-       }
-
        if (sdb_data_isnull(d1))
                d1 = NULL;
        if (sdb_data_isnull(d2))