From c34ead012b93edbc747718332e2363101c67e8f6 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 3 Nov 2021 16:54:32 +0800 Subject: [PATCH] [TD-10859]: [schemaless] Fix line Protocol support escape characters --- src/client/src/tscParseLineProtocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 64b15d0dd8..a7f6c58fbd 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -1907,8 +1907,6 @@ static int32_t parseSmlKey(TAOS_SML_KV *pKV, const char **index, SHashObj *pHash } //Escape special character if (*cur == '\\') { - //TODO: escape will work after column & tag - //support spcial characters escapeSpecialCharacter(2, &cur); } key[len] = *cur; @@ -1985,6 +1983,7 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index, //Escape special character if (*cur == '\\') { escapeSpecialCharacter(isTag ? 2 : 3, &cur); + len++; } cur++; len++; -- GitLab