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

Function NewDNameFromDString

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

NewDNameFromDString is a helper routine to create a *DName (implemented as a *DOidWrapper) initialized from an existing *DString.

(d *DString)

Source from the content-addressed store, hash-verified

3858// NewDNameFromDString is a helper routine to create a *DName (implemented as
3859// a *DOidWrapper) initialized from an existing *DString.
3860func NewDNameFromDString(d *DString) Datum {
3861 return wrapWithOid(d, oid.T_name)
3862}
3863
3864// NewDName is a helper routine to create a *DName (implemented as a *DOidWrapper)
3865// initialized from a string.

Callers 2

NewDNameFunction · 0.85
ResolveAsTypeMethod · 0.85

Calls 1

wrapWithOidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…