From 18f70372f3868a2750b0e606dd4c48dbecc9bdee Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 21 Jan 2021 10:37:50 +0800 Subject: [PATCH] [TD-225]fix bugs found in regression test. --- src/client/src/tscSQLParser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 9d7b0006f0..9745597d99 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -481,7 +481,6 @@ int32_t tscToSQLCmd(SSqlObj* pSql, struct SSqlInfo* pInfo) { SStrToken* t0 = taosArrayGet(pMiscInfo->a, 0); SStrToken* t1 = taosArrayGet(pMiscInfo->a, 1); - SStrToken* t2 = taosArrayGet(pMiscInfo->a, 2); t0->n = strdequote(t0->z); strncpy(pCfg->ep, t0->z, t0->n); @@ -493,6 +492,8 @@ int32_t tscToSQLCmd(SSqlObj* pSql, struct SSqlInfo* pInfo) { strncpy(pCfg->config, t1->z, t1->n); if (taosArrayGetSize(pMiscInfo->a) == 3) { + SStrToken* t2 = taosArrayGet(pMiscInfo->a, 2); + pCfg->config[t1->n] = ' '; // add sep strncpy(&pCfg->config[t1->n + 1], t2->z, t2->n); }