code: func serverVersion(db *sql.DB) ([]int, error) {
  	versionRx := regexp.MustCompile(`([0-9]+)\.([0-9]+)\.([0-9]+)-.*`)
  	var version string
  	if err := db.QueryRow("SELECT VERSION()").Scan(&version); err != nil {
  		return nil, fmt.Errorf("error getting MySQL server version: %v", err)
  	}
  	m := versionRx.FindStringSubmatch(version)
  	if len(m) < 4 {
  		return nil, fmt.Errorf("bogus MySQL server version: %v", version)
  	}
  	major, _ := strconv.Atoi(m[1])
  	minor, _ := strconv.Atoi(m[2])
  	rev, _ := strconv.Atoi(m[3])
  	return []int{major, minor, rev}, nil
  }
docs: // serverVersion returns the MySQL server version as []int{major, minor, revision}.