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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1287
1288// Format implements the NodeFormatter interface.
1289func (d *DCollatedString) Format(ctx *FmtCtx) {
1290 lex.EncodeSQLString(&ctx.Buffer, d.Contents)
1291 ctx.WriteString(" COLLATE ")
1292 lex.EncodeLocaleName(&ctx.Buffer, d.Locale)
1293}
1294
1295// ResolvedType implements the TypedExpr interface.
1296func (d *DCollatedString) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls 2

EncodeSQLStringFunction · 0.92
EncodeLocaleNameFunction · 0.92

Tested by

no test coverage detected