reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -18,7 +18,7 @@
namespace oceanbase {
namespace sql {
class ObExprTimeStampDiff : public ObFuncExprOperator {
public:
public:
explicit ObExprTimeStampDiff(common::ObIAllocator& alloc);
virtual ~ObExprTimeStampDiff();
virtual int calc_result_type3(ObExprResType& type, ObExprResType& unit, ObExprResType& left, ObExprResType& right,
@ -33,7 +33,7 @@ class ObExprTimeStampDiff : public ObFuncExprOperator {
static int eval_timestamp_diff(const ObExpr& expr, ObEvalCtx& ctx, ObDatum& res);
virtual int cg_expr(ObExprCGCtx& ctx, const ObRawExpr& raw_expr, ObExpr& rt_expr) const override;
private:
private:
static int calc(int64_t& res, bool& is_null, int64_t unit_value, int64_t usec_left, int64_t usec_right,
const common::ObTimeZoneInfo* tz_info);
static int calc_month_diff(