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

Function NewTypedCollateExpr

postgres/parser/sem/tree/expr.go:543–550  ·  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

541
542// NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.
543func NewTypedCollateExpr(expr TypedExpr, locale string) *CollateExpr {
544 node := &CollateExpr{
545 Expr: expr,
546 Locale: locale,
547 }
548 node.typ = types.MakeCollatedString(types.String, locale)
549 return node
550}
551
552// NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.
553func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten {

Callers

nothing calls this directly

Calls 1

MakeCollatedStringFunction · 0.92

Tested by

no test coverage detected