Merge pull request from GitHub pr276

This commit is contained in:
Aristoeu
2021-08-16 14:34:36 +08:00
committed by wangzelin.wzl
parent 74cb839ffe
commit 67e7063c4e
9 changed files with 680 additions and 3 deletions

View File

@ -181,6 +181,7 @@
#include "ob_expr_bit_length.h"
#include "ob_expr_to_single_byte.h"
#include "ob_expr_to_multi_byte.h"
#include "ob_expr_convert_tz.h"
namespace oceanbase {
using namespace common;
@ -655,7 +656,7 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = {
NULL, // ObExprDllUdf::eval_dll_udf, /* 398 */
NULL, // ObExprRawtonhex::calc_rawtonhex_expr, /* 399 */
ObExprPi::eval_pi, /* 400 */
NULL, //eval_question_mark_func, /* 401 */
ObExprConvertTZ::eval_convert_tz, /* 401 */
ObExprUtcTime::eval_utc_time, /* 402 */
ObExprUtcDate::eval_utc_date, /* 403 */
ObExprGetFormat::calc_get_format, /* 404 */
@ -664,7 +665,8 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = {
ObExprTimeFormat::calc_time_format, /* 407 */
ObExprMakedate::calc_makedate, /* 408 */
ObExprPeriodAdd::calc_periodadd, /* 409 */
ObExprExportSet::eval_export_set, /* 401 */
ObExprExportSet::eval_export_set, /* 410 */
ObExprConvertTZ::eval_convert_tz /* 411 */
};
REG_SER_FUNC_ARRAY(OB_SFA_SQL_EXPR_EVAL, g_expr_eval_functions, ARRAYSIZEOF(g_expr_eval_functions));