[fix](auth)can not grant priv to __internal_schema (#34009)
mysql> grant SELECT_PRIV on `_internal_schema`.* to 'test'@'%'; ERROR 1102 (42000): errCode = 2, detailMessage = Incorrect database name '_internal_schema'
This commit is contained in:
@ -21,7 +21,6 @@ import org.apache.doris.catalog.Env;
|
||||
import org.apache.doris.cluster.ClusterNamespace;
|
||||
import org.apache.doris.common.AnalysisException;
|
||||
import org.apache.doris.common.FeMetaVersion;
|
||||
import org.apache.doris.common.FeNameFormat;
|
||||
import org.apache.doris.common.io.Text;
|
||||
import org.apache.doris.common.io.Writable;
|
||||
import org.apache.doris.datasource.InternalCatalog;
|
||||
@ -124,18 +123,6 @@ public class TablePattern implements Writable, GsonPostProcessable {
|
||||
|| (!db.equals("*") && ctl.equals("*"))) {
|
||||
throw new AnalysisException("Do not support format: " + toString());
|
||||
}
|
||||
|
||||
if (!ctl.equals("*")) {
|
||||
FeNameFormat.checkCatalogName(ctl);
|
||||
}
|
||||
|
||||
if (!db.equals("*")) {
|
||||
FeNameFormat.checkDbName(db);
|
||||
}
|
||||
|
||||
if (!tbl.equals("*")) {
|
||||
FeNameFormat.checkTableName(tbl);
|
||||
}
|
||||
isAnalyzed = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user