diff --git a/internal/diff/diff.go b/internal/diff/diff.go index 48f8b5e9..5ae3a1f6 100644 --- a/internal/diff/diff.go +++ b/internal/diff/diff.go @@ -1929,7 +1929,7 @@ func functionReferencesNewView(fn *ir.Function, newViews map[string]struct{}) bo } // extractBaseTypeName extracts the base type name from a type expression, -// stripping SETOF prefix and array notation. +// stripping SETOF prefix, array notation, and double quotes from identifiers. func extractBaseTypeName(typeExpr string) string { t := strings.TrimSpace(typeExpr) // Strip SETOF prefix (case-insensitive) @@ -1940,6 +1940,8 @@ func extractBaseTypeName(typeExpr string) string { for len(t) > 2 && t[len(t)-2:] == "[]" { t = t[:len(t)-2] } + // Strip double quotes from identifiers (e.g., public."ViewName" -> public.ViewName) + t = strings.ReplaceAll(t, "\"", "") return t }