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

Method ResolvedType

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

ResolvedType implements the TypedExpr interface.

()

Source from the content-addressed store, hash-verified

3333
3334// ResolvedType implements the TypedExpr interface.
3335func (d *DArray) ResolvedType() *types.T {
3336 switch d.customOid {
3337 case oid.T_int2vector:
3338 return types.Int2Vector
3339 case oid.T_oidvector:
3340 return types.OidVector
3341 }
3342 return types.MakeArray(d.ParamTyp)
3343}
3344
3345// FirstIndex returns the first index of the array. 1 for normal SQL arrays,
3346// which are 1-indexed, and 0 for the special Postgers vector types which are

Callers 1

pgwireFormatMethod · 0.95

Calls 1

MakeArrayFunction · 0.92

Tested by

no test coverage detected