support oms ncharacter_set_connection

This commit is contained in:
SevenJ-swj
2023-10-10 11:40:07 +00:00
committed by ob-robot
parent 8bb3b902a3
commit c63282a624
19 changed files with 226 additions and 42 deletions

View File

@ -54,9 +54,9 @@ int ObExprUnistr::calc_result_type1(ObExprResType &type,
return ret;
}
int calc_unistr(const ObString &src,
const ObCollationType src_cs_type,
const ObCollationType dst_cs_type,
int ObExprUnistr::calc_unistr(const common::ObString &src,
const common::ObCollationType src_cs_type,
const common::ObCollationType dst_cs_type,
char* buf, const int64_t buf_len, int32_t &pos)
{
int ret = OB_SUCCESS;

View File

@ -30,7 +30,12 @@ public:
virtual int cg_expr(ObExprCGCtx &op_cg_ctx,
const ObRawExpr &raw_expr,
ObExpr &rt_expr) const;
static int calc_unistr(const common::ObString &src,
const common::ObCollationType src_cs_type,
const common::ObCollationType dst_cs_type,
char* buf, const int64_t buf_len, int32_t &pos);
static int calc_unistr_expr(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res_datum);
private:
DISALLOW_COPY_AND_ASSIGN(ObExprUnistr);
};