diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index d53a73408182dc5d16a8e3859ba11b3a9bcea962..2ff1775ecf38d6bd8a7207c9017a781c514251e3 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -331,6 +331,8 @@ int32_t handleCreateFunc(SSqlObj* pSql, struct SSqlInfo* pInfo) { SDropFuncMsg *pMsg = (SDropFuncMsg *)pSql->cmd.payload; + t0->z[t0->n] = 0; + strdequote(t0->z); if (strlen(t0->z) >= TSDB_FUNC_NAME_LEN) {