MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / IsNumeric

Method IsNumeric

pkg/sql/types/types.go:2866–2873  ·  view source on GitHub ↗

IsNumeric returns true iff this type is an integer, float, or decimal.

()

Source from the content-addressed store, hash-verified

2864
2865// IsNumeric returns true iff this type is an integer, float, or decimal.
2866func (t *T) IsNumeric() bool {
2867 switch t.Family() {
2868 case IntFamily, FloatFamily, DecimalFamily:
2869 return true
2870 default:
2871 return false
2872 }
2873}
2874
2875var EnumValueNotFound = errors.New("could not find enum value")
2876

Callers 1

FormatNodeMethod · 0.95

Calls 1

FamilyMethod · 0.95

Tested by

no test coverage detected