feat: the sql command 'create dnode' is compatible with the 2.x version syntax

This commit is contained in:
Xiaoyu Wang 2022-06-18 15:40:17 +08:00
parent 48f730fbcf
commit 88f9a4b144
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ static int32_t parseEndpoint(SAstCreateContext* pCxt, const SToken* pEp, char* p
return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG);
} }
char ep[TSDB_FQDN_LEN + 1 + 5]; char ep[TSDB_FQDN_LEN + 1 + 5] = {0};
COPY_STRING_FORM_ID_TOKEN(ep, pEp); COPY_STRING_FORM_ID_TOKEN(ep, pEp);
strdequote(ep); strdequote(ep);
strtrim(ep); strtrim(ep);