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

Function initArrayToArrayConcatenation

pkg/sql/sem/tree/eval.go:321–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319}
320
321func initArrayToArrayConcatenation() {
322 for _, t := range types.Scalar {
323 typ := t
324 BinOps[Concat] = append(BinOps[Concat], &BinOp{
325 LeftType: types.MakeArray(typ),
326 RightType: types.MakeArray(typ),
327 ReturnType: types.MakeArray(typ),
328 NullableArgs: true,
329 Fn: func(_ *EvalContext, left Datum, right Datum) (Datum, error) {
330 return ConcatArrays(typ, left, right)
331 },
332 })
333 }
334}
335
336func init() {
337 initArrayElementConcatenation()

Callers 1

initFunction · 0.85

Calls 2

MakeArrayFunction · 0.92
ConcatArraysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…