bugfix:47135989, 46585920, 47168819
This commit is contained in:
@ -955,7 +955,7 @@ int ObRawExprPrinter::print_ora_json_arrayagg(ObAggFunRawExpr *expr)
|
||||
}
|
||||
// on null
|
||||
if (OB_SUCC(ret)
|
||||
&& static_cast<ObConstRawExpr *>(expr->get_param_expr(2))->get_value().get_int() == 1) {
|
||||
&& static_cast<ObConstRawExpr *>(expr->get_param_expr(2))->get_value().get_int() == 2) {
|
||||
DATA_PRINTF(" null on null");
|
||||
}
|
||||
// returning
|
||||
|
||||
@ -5361,7 +5361,12 @@ int ObRawExprResolverImpl::process_json_exists_node(const ParseNode *node, ObRaw
|
||||
CK(OB_NOT_NULL(node->children_[i]->children_[name_idx]));
|
||||
OZ(SMART_CALL(recursive_resolve(node->children_[i]->children_[name_idx], para_expr)));
|
||||
CK(OB_NOT_NULL(para_expr));
|
||||
OZ(func_expr->add_param_expr(para_expr));
|
||||
if (name_idx % 2 == 0 && para_expr->get_expr_type() == T_REF_COLUMN) {
|
||||
ret = OB_ERR_INVALID_VARIABLE_IN_JSON_PATH;
|
||||
LOG_USER_ERROR(OB_ERR_INVALID_VARIABLE_IN_JSON_PATH);
|
||||
} else {
|
||||
OZ(func_expr->add_param_expr(para_expr));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user