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)
| 2956 | // CheckArrayElementType ensures that the given type can be used as the element |
| 2957 | // type of an ArrayFamily-typed column. If not, it returns an error. |
| 2958 | func CheckArrayElementType(t *T) error { |
| 2959 | if ok, issueNum := IsValidArrayElementType(t); !ok { |
| 2960 | return unimplemented.NewWithIssueDetailf(issueNum, t.String(), |
| 2961 | "arrays of %s not allowed", t) |
| 2962 | } |
| 2963 | return nil |
| 2964 | } |
| 2965 | |
| 2966 | // IsDateTimeType returns true if the given type is a date or time-related type. |
| 2967 | func IsDateTimeType(t *T) bool { |
no test coverage detected
searching dependent graphs…