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

Method Scale

pkg/sql/types/types.go:1499–1501  ·  view source on GitHub ↗

Scale is an alias method for Width, used for clarity for types in DecimalFamily.

()

Source from the content-addressed store, hash-verified

1497// Scale is an alias method for Width, used for clarity for types in
1498// DecimalFamily.
1499func (t *T) Scale() int32 {
1500 return t.InternalType.Width
1501}
1502
1503// ArrayContents returns the type of array elements. This is nil for types that
1504// are not in the ArrayFamily.

Callers 2

SQLStringMethod · 0.95
AdjustValueToTypeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected