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

Method Format

postgres/parser/sem/tree/datum.go:616–620  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

614
615// Format implements the NodeFormatter interface.
616func (d *DCollatedString) Format(ctx *FmtCtx) {
617 lex.EncodeSQLString(&ctx.Buffer, d.Contents)
618 ctx.WriteString(" COLLATE ")
619 lex.EncodeLocaleName(&ctx.Buffer, d.Locale)
620}
621
622// ResolvedType implements the TypedExpr interface.
623func (d *DCollatedString) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 3

EncodeSQLStringFunction · 0.92
EncodeLocaleNameFunction · 0.92
WriteStringMethod · 0.80

Tested by

no test coverage detected