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

Function IsOIDUserDefinedType

postgres/parser/types/types.go:1245–1248  ·  view source on GitHub ↗

IsOIDUserDefinedType returns whether or not o corresponds to a user defined type.

(o oid.Oid)

Source from the content-addressed store, hash-verified

1243// IsOIDUserDefinedType returns whether or not o corresponds to a user
1244// defined type.
1245func IsOIDUserDefinedType(o oid.Oid) bool {
1246 // Types with OIDs larger than the predefined max are user defined.
1247 return o > oidext.CockroachPredefinedOIDMax
1248}
1249
1250var familyNames = map[Family]string{
1251 AnyFamily: "any",

Callers 1

UserDefinedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected