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

Function NewTypedCollateExpr

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

NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.

(expr TypedExpr, locale string)

Source from the content-addressed store, hash-verified

464
465// NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.
466func NewTypedCollateExpr(expr TypedExpr, locale string) *CollateExpr {
467 node := &CollateExpr{
468 Expr: expr,
469 Locale: locale,
470 }
471 node.typ = types.MakeCollatedString(types.String, locale)
472 return node
473}
474
475// NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.
476func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten {

Callers

nothing calls this directly

Calls 1

MakeCollatedStringFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…