fix reversing align_date4cmp_expr problem

This commit is contained in:
obdev
2023-09-20 13:16:02 +00:00
committed by ob-robot
parent b901fa5a36
commit 284626c49d
4 changed files with 8 additions and 3 deletions

View File

@ -2545,6 +2545,11 @@ int ObRawExprPrinter::print(ObSysFunRawExpr *expr)
ObString func_name = expr->get_func_name();
ObExprOperatorType expr_type = expr->get_expr_type();
switch (expr_type) {
case T_FUN_SYS_ALIGN_DATE4CMP: {
CK(3 == expr->get_param_count());
PRINT_EXPR(expr->get_param_expr(0));
break;
}
case T_FUN_SYS_UTC_TIMESTAMP:
case T_FUN_SYS_UTC_TIME: {
const int16_t scale = static_cast<int16_t>(expr->get_result_type().get_scale());