From 307bc006a5435ef382b94eba69ed50b225b483aa Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Thu, 2 Jun 2022 14:34:05 +0800 Subject: [PATCH] fix(client): schemaless support blank comma equal sign mark [TS-1501] --- src/client/src/tscParseLineProtocol.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 8c92c86c19..cc7c825b3a 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -2096,8 +2096,8 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index, back_slash = false; cur++; len++; - break; - } + break; + } if (*cur == '"') { if (cur == *index) { @@ -2191,18 +2191,6 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index, len++; break; - case ',': - /* fall through */ - case '=': - /* fall through */ - case ' ': - if (*(cur - 1) != '\\') { - tscError("SML:0x%"PRIx64" tag value: state(%d), character(%c) not escaped", info->id, tag_state, *cur); - ret = TSDB_CODE_TSC_LINE_SYNTAX_ERROR; - kv_done = true; - } - break; - case '\0': tscError("SML:0x%"PRIx64" tag value: state(%d), closing \" not found", info->id, tag_state); ret = TSDB_CODE_TSC_LINE_SYNTAX_ERROR; -- GitLab