MCPcopy Create free account
hub / github.com/dolthub/doltgresql / IsNumeric

Method IsNumeric

postgres/parser/types/types.go:2334–2341  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

2332
2333// IsNumeric returns true iff this type is an integer, float, or decimal.
2334func (t *T) IsNumeric() bool {
2335 switch t.Family() {
2336 case IntFamily, FloatFamily, DecimalFamily:
2337 return true
2338 default:
2339 return false
2340 }
2341}
2342
2343// EnumGetIdxOfPhysical returns the index within the TypeMeta's slice of
2344// enum physical representations that matches the input byte slice.

Callers 1

FormatNodeMethod · 0.95

Calls 1

FamilyMethod · 0.95

Tested by

no test coverage detected