From a31dc3afd2c47a1e2063335f7e923584482dbe9b Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sun, 9 Jan 2022 22:46:31 +0800 Subject: [PATCH] [TD-12252](connector,query,insert,other,tools,taosAdapter):deal with escape character --- src/client/src/tscParseInsert.c | 2 +- src/client/src/tscSql.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index cff03f568a..19d537eb11 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -1350,7 +1350,7 @@ _clean: static int32_t getFileFullPath(SStrToken* pToken, char* output) { char path[PATH_MAX] = {0}; strncpy(path, pToken->z, pToken->n); - stringProcess(path, strlen(path)); + stringProcess(path, (int32_t)strlen(path)); wordexp_t full_path; if (wordexp(path, &full_path, 0) != 0) { diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index eb189632d1..7f4322549f 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -137,7 +137,7 @@ static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pa char tmp[TSDB_DB_NAME_LEN] = {0}; tstrncpy(tmp, db, sizeof(tmp)); - stringProcess(tmp, strlen(tmp)); + stringProcess(tmp, (int32_t)strlen(tmp)); strtolower(pObj->db, tmp); } -- GitLab