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)
| 2941 | // element type of an ArrayFamily-typed column. If the valid return is false, |
| 2942 | // the issue number should be included in the error report to inform the user. |
| 2943 | func IsValidArrayElementType(t *T) (valid bool, issueNum int) { |
| 2944 | switch t.Family() { |
| 2945 | case TSQueryFamily: |
| 2946 | return false, 90886 |
| 2947 | case TSVectorFamily: |
| 2948 | return false, 90886 |
| 2949 | case PGVectorFamily: |
| 2950 | return false, 121432 |
| 2951 | default: |
| 2952 | return true, 0 |
| 2953 | } |
| 2954 | } |
| 2955 | |
| 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. |
no test coverage detected
searching dependent graphs…