From 98e4984023f66551085b9856f403025a8c46fad5 Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Fri, 24 Sep 2021 10:33:40 +0800 Subject: [PATCH] [TD-10439]taosdemo support timestamp tag (#8044) * [TD-10439]taosdemo support timestamp tag * rerun ci --- src/kit/taosdemo/taosdemo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index 88ff349915..996ca9a4a3 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -4271,6 +4271,10 @@ static int createSuperTable( len += snprintf(tags + len, TSDB_MAX_TAGS_LEN - len, "T%d %s,", tagIndex, "BIGINT UNSIGNED"); lenOfTagOfOneRow += superTbl->tags[tagIndex].dataLen + BIGINT_BUFF_LEN; + } else if (strcasecmp(dataType, "TIMESTAMP") == 0) { + len += snprintf(tags + len, TSDB_MAX_TAGS_LEN - len, + "T%d %s,", tagIndex, "TIMESTAMP"); + lenOfTagOfOneRow += superTbl->tags[tagIndex].dataLen + TIMESTAMP_BUFF_LEN; } else { taos_close(taos); free(command); @@ -12063,4 +12067,3 @@ int main(int argc, char *argv[]) { return 0; } - -- GitLab