patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -10,7 +10,6 @@
* See the Mulan PubL v2 for more details.
*/
#ifndef OCEANBASE_SQL_OB_EXPR_TIME_FORMAT_H_
#define OCEANBASE_SQL_OB_EXPR_TIME_FORMAT_H_
@ -30,16 +29,13 @@ public:
ObExprResType &date,
ObExprResType &format,
common::ObExprTypeCtx &type_ctx) const;
virtual int calc_result2(common::ObObj &result,
const common::ObObj &date,
const common::ObObj &format,
common::ObExprCtx &expr_ctx) const;
virtual int cg_expr(ObExprCGCtx &op_cg_ctx,
const ObRawExpr &raw_expr,
ObExpr &rt_expr) const override;
static int time_to_str_format(const int64_t &time_value, const common::ObString &format,
char *buf, int64_t buf_len, int64_t &pos, bool &res_null);
static int calc_time_format(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &expr_datum);
virtual common::ObCastMode get_cast_mode() const override { return CM_NULL_ON_WARN;}
private:
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObExprTimeFormat);