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

Method NewDString

pkg/sql/sem/tree/datum_alloc.go:235–244  ·  view source on GitHub ↗

NewDString allocates a DString.

(v DString)

Source from the content-addressed store, hash-verified

233
234// NewDString allocates a DString.
235func (a *DatumAlloc) NewDString(v DString) *DString {
236 if a == nil {
237 r := new(DString)
238 *r = v
239 return r
240 }
241 r := (*DString)(a.newString())
242 *r = v
243 return r
244}
245
246// NewDCollatedString allocates a DCollatedString.
247func (a *DatumAlloc) NewDCollatedString(contents string, locale string) (*DCollatedString, error) {

Callers 2

NewDNameMethod · 0.95
NewDRefCursorMethod · 0.95

Calls 1

newStringMethod · 0.95

Tested by

no test coverage detected