diff --git a/src/core/store.c b/src/core/store.c
index 81aedfb7600a9243accbe4e49cceffcf87f8c54b..d9ca4c0eb113a7a2824249d92d83fa45f4d4e56c 100644 (file)
--- a/src/core/store.c
+++ b/src/core/store.c
tmp.data.datetime = obj->interval;
break;
case SDB_FIELD_BACKEND:
- /* TODO: add support for storing array values in a data object
- * for now, fall thru to the error case */
+ {
+ tmp.type = SDB_TYPE_ARRAY | SDB_TYPE_STRING;
+ tmp.data.array.length = obj->backends_num;
+ tmp.data.array.values = obj->backends;
+ return sdb_data_copy(res, &tmp);
+ break;
+ }
default:
return -1;
}