From f284226f3fe7c08c1f70ca893e6b09a246812f11 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 13 May 2022 21:47:55 +0800 Subject: [PATCH] refactor: add ut casese for schemaless --- source/client/src/clientSml.c | 2 +- source/libs/parser/src/parInsert.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 9fd5ac57a4..c6fb83b296 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1179,7 +1179,7 @@ static int32_t smlParseCols(const char* data, int32_t len, SArray *cols, bool is //} static bool smlUpdateMeta(SHashObj *metaHash, SArray *metaArray, SArray *cols, SSmlMsgBuf *msg){ - for (int i = 1; i < taosArrayGetSize(cols); ++i) { //jump timestamp + for (int i = 0; i < taosArrayGetSize(cols); ++i) { //jump timestamp SSmlKv *kv = (SSmlKv *)taosArrayGetP(cols, i); int16_t *index = (int16_t *)taosHashGet(metaHash, kv->key, kv->keyLen); diff --git a/source/libs/parser/src/parInsert.c b/source/libs/parser/src/parInsert.c index 982f2e1f86..81f55d8046 100644 --- a/source/libs/parser/src/parInsert.c +++ b/source/libs/parser/src/parInsert.c @@ -758,7 +758,7 @@ static int32_t KvRowAppend(SMsgBuf* pMsgBuf, const void* value, int32_t len, voi int32_t output = 0; if (!taosMbsToUcs4(value, len, (TdUcs4*)varDataVal(pa->buf), pa->schema->bytes - VARSTR_HEADER_SIZE, &output)) { char buf[512] = {0}; - snprintf(buf, tListLen(buf), "%s", strerror(errno)); + snprintf(buf, tListLen(buf), " taosMbsToUcs4 error:%s", strerror(errno)); return buildSyntaxErrMsg(pMsgBuf, buf, value); }