diff --git a/src/client/src/tscSQLParserImpl.c b/src/client/src/tscSQLParserImpl.c index 28dc5e7f3b..9aa1942956 100644 --- a/src/client/src/tscSQLParserImpl.c +++ b/src/client/src/tscSQLParserImpl.c @@ -861,11 +861,15 @@ void setAlterUserSQL(SSqlInfo *pInfo, int16_t type, SSQLToken *pName, SSQLToken* if (pPwd != NULL) { pUser->passwd = *pPwd; // pUser->hasPasswd = true; + } else { + pUser->passwd.type = TSDB_DATA_TYPE_NULL; } if (pPrivilege != NULL) { pUser->privilege = *pPrivilege; // pUser->hasPrivilege = true; + } else { + pUser->privilege.type = TSDB_DATA_TYPE_NULL; } }