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

Function MakeArray

postgres/parser/types/types.go:1036–1044  ·  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

1034// MakeArray constructs a new instance of an ArrayFamily type with the given
1035// element type (which may itself be an ArrayFamily type).
1036func MakeArray(typ *T) *T {
1037 arr := &T{InternalType: InternalType{
1038 Family: ArrayFamily,
1039 Oid: calcArrayOid(typ),
1040 ArrayContents: typ,
1041 Locale: &emptyLocale,
1042 }}
1043 return arr
1044}
1045
1046// MakeTuple constructs a new instance of a TupleFamily type with the given
1047// field types (some/all of which may be other TupleFamily types).

Callers 15

arrayOfFunction · 0.92
ResolveTypeFunction · 0.92
SQLStringMethod · 0.92
ParseDArrayFromStringFunction · 0.92
ResolvedTypeMethod · 0.92
processCollationOnTypeFunction · 0.92
NewTypedArrayFlattenExprFunction · 0.92
eval.goFile · 0.92
cmpOpFixupsFunction · 0.92
TypeCheckMethod · 0.92

Calls 1

calcArrayOidFunction · 0.85

Tested by

no test coverage detected