From dc87eda7c4db0e6dbd8fa6387977e191abdc73a4 Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 16 Jan 2020 03:36:16 -0400 Subject: [PATCH] [TBASE-1486] --- src/client/src/tscSQLParserImpl.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } }