fix: user sysinfo

This commit is contained in:
kailixu 2024-01-19 19:27:36 +08:00
parent 9576a999c6
commit dce02868b7
1 changed files with 4 additions and 1 deletions

View File

@ -380,7 +380,10 @@ static int32_t getViewMetaImpl(SParseContext* pParCxt, SParseMetaCache* pMetaCac
int32_t getTargetMetaImpl(SParseContext* pParCxt, SParseMetaCache* pMetaCache, const SName* pName, STableMeta** pMeta, bool couldBeView) {
int32_t code = TSDB_CODE_SUCCESS;
if (!pParCxt->enableSysInfo && IS_SYS_DBNAME(pName->dbname)) {
code = TSDB_CODE_PAR_PERMISSION_DENIED;
return code;
}
if (pParCxt->async) {
code = getTableMetaFromCache(pMetaCache, pName, pMeta);
#ifdef TD_ENTERPRISE