[TBASE-1486]
This commit is contained in:
parent
97b6f96fd1
commit
dc87eda7c4
|
@ -861,11 +861,15 @@ void setAlterUserSQL(SSqlInfo *pInfo, int16_t type, SSQLToken *pName, SSQLToken*
|
||||||
if (pPwd != NULL) {
|
if (pPwd != NULL) {
|
||||||
pUser->passwd = *pPwd;
|
pUser->passwd = *pPwd;
|
||||||
// pUser->hasPasswd = true;
|
// pUser->hasPasswd = true;
|
||||||
|
} else {
|
||||||
|
pUser->passwd.type = TSDB_DATA_TYPE_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pPrivilege != NULL) {
|
if (pPrivilege != NULL) {
|
||||||
pUser->privilege = *pPrivilege;
|
pUser->privilege = *pPrivilege;
|
||||||
// pUser->hasPrivilege = true;
|
// pUser->hasPrivilege = true;
|
||||||
|
} else {
|
||||||
|
pUser->privilege.type = TSDB_DATA_TYPE_NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue