Skip to content

Commit

Permalink
add HasModeAllowInvalidDates
Browse files Browse the repository at this point in the history
  • Loading branch information
bobotu committed Jan 12, 2019
1 parent ec41630 commit de9cd3b
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
}

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

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

0 comments on commit de9cd3b

Please sign in to comment.