support last_day in mysql mode

This commit is contained in:
jg0
2021-07-27 21:39:15 +08:00
committed by wangzelin.wzl
parent 09edba0ff6
commit 74d0236609
45 changed files with 26893 additions and 25079 deletions

View File

@ -84,6 +84,23 @@ private:
DISALLOW_COPY_AND_ASSIGN(ObExprToTimestampTZ);
};
class ObExprTimestamp : public ObFuncExprOperator
{
public:
explicit ObExprTimestamp(common::ObIAllocator &alloc);
virtual ~ObExprTimestamp();
virtual int calc_result_type1(ObExprResType &type,
ObExprResType &type1,
common::ObExprTypeCtx &type_ctx) const;
virtual int calc_result1(common::ObObj &result,
const common::ObObj &time,
common::ObExprCtx &expr_ctx) const;
virtual common::ObCastMode get_cast_mode() const { return CM_NULL_ON_WARN;}
private :
//disallow copy
DISALLOW_COPY_AND_ASSIGN(ObExprTimestamp);
};
} // namespace sql
} // namespace oceanbase