code: func IsTypeFractionable(tp byte) bool {
  	return tp == mysql.TypeDatetime || tp == mysql.TypeDuration || tp == mysql.TypeTimestamp
  }
docs: // IsTypeFractionable returns a boolean indicating
  // whether the tp can has time fraction.