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

Method ResolvedType

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

ResolvedType implements the TypedExpr interface. Must be kept in sync with DArray.MaybeSetCustomOid.

()

Source from the content-addressed store, hash-verified

5035// ResolvedType implements the TypedExpr interface. Must be kept in sync with
5036// DArray.MaybeSetCustomOid.
5037func (d *DArray) ResolvedType() *types.T {
5038 switch d.customOid {
5039 case oid.T_int2vector:
5040 return types.Int2Vector
5041 case oid.T_oidvector:
5042 return types.OidVector
5043 }
5044 return types.MakeArray(d.ParamTyp)
5045}
5046
5047// IsComposite implements the CompositeDatum interface.
5048func (d *DArray) IsComposite() bool {

Callers 1

pgwireFormatMethod · 0.95

Calls 1

MakeArrayFunction · 0.92

Tested by

no test coverage detected