提交 307bc006 编写于 作者: A Alex Duan

fix(client): schemaless support blank comma equal sign mark [TS-1501]

上级 b4e961b5
...@@ -2096,8 +2096,8 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index, ...@@ -2096,8 +2096,8 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index,
back_slash = false; back_slash = false;
cur++; cur++;
len++; len++;
break; break;
} }
if (*cur == '"') { if (*cur == '"') {
if (cur == *index) { if (cur == *index) {
...@@ -2191,18 +2191,6 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index, ...@@ -2191,18 +2191,6 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index,
len++; len++;
break; 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': case '\0':
tscError("SML:0x%"PRIx64" tag value: state(%d), closing \" not found", info->id, tag_state); tscError("SML:0x%"PRIx64" tag value: state(%d), closing \" not found", info->id, tag_state);
ret = TSDB_CODE_TSC_LINE_SYNTAX_ERROR; ret = TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册