code: func (e *QueryEvent) IsModeEnabled(mode mysql_proto.SqlMode_BitPosition) bool {
  	if e.sqlMode == nil {
  		return false
  	}
  
  	return (*e.sqlMode & (uint64(1) << uint(mode))) != 0
  }
docs: // IsModeEnabled returns true iff sql mode status is set and the mode bit is
  // set.