bugfix: lnnvl raw expr printer

This commit is contained in:
obdev
2023-09-01 04:44:17 +00:00
committed by ob-robot
parent 9a3e84dc86
commit 4c232da560
3 changed files with 37 additions and 1 deletions

View File

@ -2923,7 +2923,11 @@ int ObRawExprPrinter::print(ObSysFunRawExpr *expr)
break;
}
case T_FUN_SYS_LNNVL: {
DATA_PRINTF("(%.*s", LEN_AND_PTR(func_name));
if (lib::is_oracle_mode()) {
DATA_PRINTF("(%.*s", LEN_AND_PTR(func_name));
} else {
DATA_PRINTF("%.*s(", LEN_AND_PTR(func_name));
}
if (1 != expr->get_param_count()) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("param count should be equal 1", K(ret), K(expr->get_param_count()));