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

Function intersectTypeSlices

pkg/sql/sem/tree/constant.go:362–371  ·  view source on GitHub ↗
(xs, ys []*types.T)

Source from the content-addressed store, hash-verified

360}
361
362func intersectTypeSlices(xs, ys []*types.T) (out []*types.T) {
363 for _, x := range xs {
364 for _, y := range ys {
365 if x == y {
366 out = append(out, x)
367 }
368 }
369 }
370 return out
371}
372
373// commonConstantType returns the most constrained type which is mutually
374// resolvable between a set of provided constants.

Callers 1

commonConstantTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…