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

Method Validate

postgres/parser/sem/tree/datum.go:1728–1733  ·  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

1726// Validate checks that the given array is valid,
1727// for example, that it's not too big.
1728func (d *DArray) Validate() error {
1729 if d.Len() > maxArrayLength {
1730 return errors.WithStack(errArrayTooLongError)
1731 }
1732 return nil
1733}
1734
1735// Len returns the length of the Datum array.
1736func (d *DArray) Len() int {

Callers 1

AppendMethod · 0.95

Calls 1

LenMethod · 0.95

Tested by

no test coverage detected