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

Function MakeArray

pkg/sql/types/types.go:816–823  ·  view source on GitHub ↗

MakeArray constructs a new instance of an ArrayFamily type with the given element type (which may itself be an ArrayFamily type).

(typ *T)

Source from the content-addressed store, hash-verified

814// MakeArray constructs a new instance of an ArrayFamily type with the given
815// element type (which may itself be an ArrayFamily type).
816func MakeArray(typ *T) *T {
817 return &T{InternalType: InternalType{
818 Family: ArrayFamily,
819 Oid: calcArrayOid(typ),
820 ArrayContents: typ,
821 Locale: &emptyLocale,
822 }}
823}
824
825// MakeTuple constructs a new instance of a TupleFamily type with the given
826// field types (some/all of which may be other TupleFamily types).

Callers 14

arrayOfFunction · 0.92
ParseDArrayFromStringFunction · 0.92
ResolvedTypeMethod · 0.92
NewTypedArrayFlattenExprFunction · 0.92
eval.goFile · 0.92
cmpOpFixupsFunction · 0.92
TypeCheckMethod · 0.92
TypeCheckMethod · 0.92
TypeCheckMethod · 0.92

Calls 1

calcArrayOidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…