[CP] fix application context treat NULL as empty string

This commit is contained in:
18523270951@163.com
2025-03-15 20:16:57 +00:00
committed by ob-robot
parent 3f0e01e759
commit 8f04533b50

View File

@ -762,7 +762,11 @@ int ObExprSysContext::eval_application_context(const ObExpr &expr, ObDatum &res,
}
if (OB_SUCC(ret)) {
if (exist) {
OX(res.set_string(out_value));
if (out_value.empty()) {
res.set_null();
} else {
res.set_string(out_value);
}
} else {
res.set_null();
}