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

Method Format

pkg/sql/sem/tree/expr.go:1670–1674  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1668
1669// Format implements the NodeFormatter interface.
1670func (node *CollateExpr) Format(ctx *FmtCtx) {
1671 exprFmtWithParen(ctx, node.Expr)
1672 ctx.WriteString(" COLLATE ")
1673 lex.EncodeLocaleName(&ctx.Buffer, node.Locale)
1674}
1675
1676// TupleStar represents (E).* expressions.
1677// It is meant to evaporate during star expansion.

Callers

nothing calls this directly

Calls 2

EncodeLocaleNameFunction · 0.92
exprFmtWithParenFunction · 0.85

Tested by

no test coverage detected