zddr commented on code in PR #33320:
URL: https://github.com/apache/doris/pull/33320#discussion_r1557259023


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCreateDbStmt.java:
##########
@@ -57,8 +58,9 @@ public void analyze(Analyzer analyzer) throws 
AnalysisException, UserException {
             ErrorReport.reportAnalysisException(ErrorCode.ERR_WRONG_DB_NAME, 
db);
         }
 
-        if 
(!Env.getCurrentEnv().getAccessManager().checkDbPriv(ConnectContext.get(), db,
-                PrivPredicate.ALTER_CREATE_DROP)) {
+        if (!Env.getCurrentEnv().getAccessManager()
+                .checkDbPriv(ConnectContext.get(), 
InternalCatalog.INTERNAL_CATALOG_NAME, db,

Review Comment:
   Unable to obtain catalog name



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to