Fix GIN opclass handling for array columns
This commit is contained in:
@@ -1251,6 +1251,9 @@ func isIntegerType(colType string) bool {
|
||||
func isTextType(colType string) bool {
|
||||
textTypes := []string{"text", "varchar", "character varying", "char", "character", "string"}
|
||||
lowerType := strings.ToLower(colType)
|
||||
if strings.HasSuffix(lowerType, "[]") {
|
||||
return false
|
||||
}
|
||||
for _, t := range textTypes {
|
||||
if strings.HasPrefix(lowerType, t) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user