From 118252dff0eca397202c3c52a66fe7cb3805362d Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 19 Dec 2022 09:53:51 +0800 Subject: [PATCH] fix:enable multi type for telnet --- source/client/src/clientSmlTelnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientSmlTelnet.c b/source/client/src/clientSmlTelnet.c index e6574d030b..84881df3f2 100644 --- a/source/client/src/clientSmlTelnet.c +++ b/source/client/src/clientSmlTelnet.c @@ -283,7 +283,7 @@ 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)) { + if (smlParseValue(&kv, &info->msgBuf) == TSDB_CODE_SUCCESS) { kv.length = (int16_t)tDataTypes[kv.type].bytes; }else{ return TSDB_CODE_TSC_INVALID_VALUE; -- GitLab