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

Function checkTupleHasLength

postgres/parser/sem/tree/type_check.go:2356–2361  ·  view source on GitHub ↗
(t *Tuple, expectedLen int)

Source from the content-addressed store, hash-verified

2354}
2355
2356func checkTupleHasLength(t *Tuple, expectedLen int) error {
2357 if len(t.Exprs) != expectedLen {
2358 return pgerror.Newf(pgcode.DatatypeMismatch, "expected tuple %v to have a length of %d", t, expectedLen)
2359 }
2360 return nil
2361}

Callers 2

typeCheckTupleComparisonFunction · 0.85
checkAllTuplesHaveLengthFunction · 0.85

Calls 1

NewfFunction · 0.92

Tested by

no test coverage detected