Skip to content

Commit

Permalink
refmt
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed May 9, 2019
1 parent f56cb12 commit 995bc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expression/builtin_time.go
Original file line number Diff line number Diff line change
Expand Up @@ -4735,7 +4735,7 @@ func (c *periodAddFunctionClass) getFunction(ctx sessionctx.Context, args []Expr
}

func validPeriod(p int64) bool {
return !(p < 0 || p % 100 == 0 || p %100 >12)
return !(p < 0 || p%100 == 0 || p%100 > 12)
}

// period2Month converts a period to months, in which period is represented in the format of YYMM or YYYYMM.
Expand Down

0 comments on commit 995bc64

Please sign in to comment.