patch 4.0
This commit is contained in:
@ -13,17 +13,24 @@
|
||||
#ifndef SQL_ENGINE_EXPR_OB_EXPR_SHADOW_UK_PROJECT_H_
|
||||
#define SQL_ENGINE_EXPR_OB_EXPR_SHADOW_UK_PROJECT_H_
|
||||
#include "sql/engine/expr/ob_expr_operator.h"
|
||||
namespace oceanbase {
|
||||
namespace sql {
|
||||
class ObExprShadowUKProject : public ObExprOperator {
|
||||
namespace oceanbase
|
||||
{
|
||||
namespace sql
|
||||
{
|
||||
class ObExprShadowUKProject : public ObExprOperator
|
||||
{
|
||||
public:
|
||||
ObExprShadowUKProject(common::ObIAllocator& alloc)
|
||||
: ObExprOperator(alloc, T_OP_SHADOW_UK_PROJECT, N_SHADOW_UK_PROJECTOR, MORE_THAN_ONE, NOT_ROW_DIMENSION)
|
||||
{}
|
||||
ObExprShadowUKProject(common::ObIAllocator &alloc)
|
||||
: ObExprOperator(alloc, T_OP_SHADOW_UK_PROJECT, N_SHADOW_UK_PROJECTOR, MORE_THAN_ONE, NOT_ROW_DIMENSION, INTERNAL_IN_MYSQL_MODE)
|
||||
{
|
||||
}
|
||||
virtual ~ObExprShadowUKProject()
|
||||
{}
|
||||
virtual int calc_result_typeN(
|
||||
ObExprResType& type, ObExprResType* types, int64_t param_num, common::ObExprTypeCtx& type_ctx) const
|
||||
{
|
||||
}
|
||||
virtual int calc_result_typeN(ObExprResType &type,
|
||||
ObExprResType *types,
|
||||
int64_t param_num,
|
||||
common::ObExprTypeCtx &type_ctx) const
|
||||
{
|
||||
UNUSED(type_ctx);
|
||||
int ret = common::OB_SUCCESS;
|
||||
@ -36,9 +43,13 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
virtual int cg_expr(ObExprCGCtx& ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
|
||||
virtual int cg_expr(ObExprCGCtx &ctx,
|
||||
const ObRawExpr &raw_expr,
|
||||
ObExpr &rt_expr) const override;
|
||||
|
||||
static int shadow_uk_project(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& datum);
|
||||
static int shadow_uk_project(const ObExpr &expr,
|
||||
ObEvalCtx &ctx,
|
||||
ObDatum &datum);
|
||||
};
|
||||
} // namespace sql
|
||||
} // namespace oceanbase
|
||||
|
||||
Reference in New Issue
Block a user