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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1397
1398// Format implements the NodeFormatter interface.
1399func (d *DCollatedString) Format(ctx *FmtCtx) {
1400 lexbase.EncodeSQLString(&ctx.Buffer, d.Contents)
1401 ctx.WriteString(" COLLATE ")
1402 lex.EncodeLocaleName(&ctx.Buffer, d.Locale)
1403}
1404
1405// ResolvedType implements the TypedExpr interface.
1406func (d *DCollatedString) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 2

EncodeSQLStringFunction · 0.92
EncodeLocaleNameFunction · 0.92

Tested by

no test coverage detected