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

Method Validate

pkg/sql/sem/tree/datum.go:5180–5185  ·  view source on GitHub ↗

Validate checks that the given array is valid, for example, that it's not too big.

()

Source from the content-addressed store, hash-verified

5178// Validate checks that the given array is valid,
5179// for example, that it's not too big.
5180func (d *DArray) Validate() error {
5181 if d.Len() > maxArrayLength {
5182 return errors.WithStack(errArrayTooLongError)
5183 }
5184 return nil
5185}
5186
5187// Len returns the length of the Datum array.
5188func (d *DArray) Len() int {

Callers 1

AppendMethod · 0.95

Calls 1

LenMethod · 0.95

Tested by

no test coverage detected