Fix GIN opclass handling for array columns

This commit is contained in:
Hein
2026-04-30 20:35:06 +02:00
parent 6d2884f5cf
commit 15763f60cc
2 changed files with 40 additions and 0 deletions

View File

@@ -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