From cf8716f8896960eae4527aa6461970b15502d2a6 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 19 Dec 2022 10:06:57 +0800 Subject: [PATCH] fix:enable multi type for telnet --- source/client/src/clientSmlTelnet.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/client/src/clientSmlTelnet.c b/source/client/src/clientSmlTelnet.c index 84881df3f2..53a7e3e81e 100644 --- a/source/client/src/clientSmlTelnet.c +++ b/source/client/src/clientSmlTelnet.c @@ -283,11 +283,10 @@ int32_t smlParseTelnetString(SSmlHandle *info, char *sql, char *sqlEnd, SSmlLine } SSmlKv kv = {.key = VALUE, .keyLen = VALUE_LEN, .value = elements->cols, .length = (size_t)elements->colsLen}; - if (smlParseValue(&kv, &info->msgBuf) == TSDB_CODE_SUCCESS) { - kv.length = (int16_t)tDataTypes[kv.type].bytes; - }else{ + if (smlParseValue(&kv, &info->msgBuf) != TSDB_CODE_SUCCESS) { return TSDB_CODE_TSC_INVALID_VALUE; } + JUMP_SPACE(sql, sqlEnd) elements->tags = sql; -- GitLab