Skip to content

Commit

Permalink
add HasAllowInvalidDatesMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Zejun Li committed Jan 12, 2019
1 parent ec41630 commit c102abd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mysql/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ func (m SQLMode) HasNoAutoCreateUserMode() bool {
return m&ModeNoAutoCreateUser == ModeNoAutoCreateUser
}

// HasAllowInvalidDatesMode detects if 'ALLOW_INVALID_DATES' mode is set in SQLMode
func (m SQLMode) HasAllowInvalidDatesMode() bool {
return m&ModeAllowInvalidDates == ModeAllowInvalidDates
}

// consts for sql modes.
const (
ModeNone SQLMode = 0
Expand Down

0 comments on commit c102abd

Please sign in to comment.