CheckArrayElementType ensures that the given type can be used as the element type of an ArrayFamily-typed column. If not, it returns an error.
(t *T)
| 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. |
| 1974 | func CheckArrayElementType(t *T) error { |
| 1975 | if ok, issueNum := IsValidArrayElementType(t); !ok { |
| 1976 | return unimplemented.NewWithIssueDetailf(issueNum, t.String(), |
| 1977 | "arrays of %s not allowed", t) |
| 1978 | } |
| 1979 | return nil |
| 1980 | } |
| 1981 | |
| 1982 | // IsDateTimeType returns true if the given type is a date or time-related type. |
| 1983 | func IsDateTimeType(t *T) bool { |
no test coverage detected
searching dependent graphs…