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

Function NewDOid

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

NewDOid is a helper routine to create a *DOid initialized from a DInt.

(d oid.Oid)

Source from the content-addressed store, hash-verified

5674
5675// NewDOid is a helper routine to create a *DOid initialized from a DInt.
5676func NewDOid(d oid.Oid) *DOid {
5677 // TODO(yuzefovich): audit the callers of NewDOid to see whether any want to
5678 // create a DOid with a semantic type different from types.Oid.
5679 oidDatum := MakeDOid(d, types.Oid)
5680 return &oidDatum
5681}
5682
5683// AsDOid attempts to retrieve a DOid from an Expr, returning a DOid and
5684// a flag signifying whether the assertion was successful. The function should

Callers 3

AsDOidFunction · 0.85
ParseDOidAsIntFunction · 0.85
ResolveAsTypeMethod · 0.85

Calls 1

MakeDOidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…