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

Method UserDefinedArrayOID

pkg/sql/types/types.go:1526–1531  ·  view source on GitHub ↗

UserDefinedArrayOID returns the OID of the array type that corresponds to this user defined type. This function only can only be called on user defined types and returns non-zero data only for user defined types that aren't arrays.

()

Source from the content-addressed store, hash-verified

1524// defined types and returns non-zero data only for user defined types that
1525// aren't arrays.
1526func (t *T) UserDefinedArrayOID() oid.Oid {
1527 if t.InternalType.UDTMetadata == nil {
1528 return 0
1529 }
1530 return t.InternalType.UDTMetadata.ArrayTypeOID
1531}
1532
1533// RemapUserDefinedTypeOIDs is used to remap OIDs stored within a types.T
1534// that is a user defined type. The newArrayOID argument is ignored if the

Callers 1

CalcArrayOidFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected