summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34bfa97)
raw | patch | inline | side by side (parent: 34bfa97)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 5 Nov 2014 23:19:49 +0000 (00:19 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 5 Nov 2014 23:19:49 +0000 (00:19 +0100) |
src/include/core/data.h | patch | blob | history |
index 9ab5cdabf50936d33f5a494a64456bad3502c6c9..cf4e27eca022ba6f61282c7c90653ecc908e8b38 100644 (file)
--- a/src/include/core/data.h
+++ b/src/include/core/data.h
: ((t) == SDB_TYPE_STRING) ? "STRING" \
: ((t) == SDB_TYPE_DATETIME) ? "DATETIME" \
: ((t) == SDB_TYPE_BINARY) ? "BINARY" \
- : ((t) == SDB_TYPE_REGEX) ? "REGEX" : "UNKNOWN")
+ : ((t) == SDB_TYPE_REGEX) ? "REGEX" \
+ : ((t) == (SDB_TYPE_ARRAY | SDB_TYPE_INTEGER)) ? "[]INTEGER" \
+ : ((t) == (SDB_TYPE_ARRAY | SDB_TYPE_DECIMAL)) ? "[]DECIMAL" \
+ : ((t) == (SDB_TYPE_ARRAY | SDB_TYPE_STRING)) ? "[]STRING" \
+ : ((t) == (SDB_TYPE_ARRAY | SDB_TYPE_DATETIME)) ? "[]DATETIME" \
+ : ((t) == (SDB_TYPE_ARRAY | SDB_TYPE_BINARY)) ? "[]BINARY" \
+ : ((t) == (SDB_TYPE_ARRAY | SDB_TYPE_REGEX)) ? "[]REGEX" \
+ : "UNKNOWN")
union sdb_datum;
typedef union sdb_datum sdb_datum_t;