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

Method Validate

pkg/sql/sem/tree/datum.go:3462–3467  ·  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

3460// Validate checks that the given array is valid,
3461// for example, that it's not too big.
3462func (d *DArray) Validate() error {
3463 if d.Len() > maxArrayLength {
3464 return errors.WithStack(errArrayTooLongError)
3465 }
3466 return nil
3467}
3468
3469// Len returns the length of the Datum array.
3470func (d *DArray) Len() int {

Callers 1

AppendMethod · 0.95

Calls 1

LenMethod · 0.95

Tested by

no test coverage detected