patch 4.0
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user