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

Function IsValidArrayElementType

pkg/sql/types/types.go:1963–1970  ·  view source on GitHub ↗

IsValidArrayElementType returns true if the given type can be used as the element type of an ArrayFamily-typed column. If the valid return is false, the issue number should be included in the error report to inform the user.

(t *T)

Source from the content-addressed store, hash-verified

1961// element type of an ArrayFamily-typed column. If the valid return is false,
1962// the issue number should be included in the error report to inform the user.
1963func IsValidArrayElementType(t *T) (valid bool, issueNum int) {
1964 switch t.Family() {
1965 case JsonFamily:
1966 return false, 23468
1967 default:
1968 return true, 0
1969 }
1970}
1971
1972// CheckArrayElementType ensures that the given type can be used as the element
1973// type of an ArrayFamily-typed column. If not, it returns an error.

Callers 1

CheckArrayElementTypeFunction · 0.85

Calls 1

FamilyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…