[fix](set) fix error message when set a session only variable (#27554)
This commit is contained in:
@ -258,7 +258,7 @@ public class VariableMgr {
|
||||
throw new DdlException(ErrorCode.ERR_VARIABLE_IS_READONLY.formatErrorMsg(setVar.getVariable()));
|
||||
}
|
||||
if (setVar.getType() == SetType.GLOBAL && (flag & SESSION_ONLY) != 0) {
|
||||
throw new DdlException(ErrorCode.ERR_GLOBAL_VARIABLE.formatErrorMsg(setVar.getVariable()));
|
||||
throw new DdlException(ErrorCode.ERR_LOCAL_VARIABLE.formatErrorMsg(setVar.getVariable()));
|
||||
}
|
||||
if (setVar.getType() != SetType.GLOBAL && (flag & GLOBAL) != 0) {
|
||||
throw new DdlException(ErrorCode.ERR_GLOBAL_VARIABLE.formatErrorMsg(setVar.getVariable()));
|
||||
|
||||
Reference in New Issue
Block a user