Skip to content

fix: quote schema-qualified array types when adding columns - #1124

Open
hsusul wants to merge 1 commit into
supabase:masterfrom
hsusul:fix/schema-qualified-array-column-type
Open

fix: quote schema-qualified array types when adding columns#1124
hsusul wants to merge 1 commit into
supabase:masterfrom
hsusul:fix/schema-qualified-array-column-type

Conversation

@hsusul

@hsusul hsusul commented Aug 27, 2026

Copy link
Copy Markdown

What kind of change does this PR introduce?

Bug fix.

Why?

typeIdent('schema.type[]') quoted the whole schema.type as one identifier ("schema.type"[]). Postgres then cannot resolve the array type. Non-array schema-qualified names are unchanged.

Fixes #1122.

How?

For array types that include ., quote each identifier component separately ("schema"."type"[]).

Checklist

  • Bug fix
  • Tests added
  • Docs
  • Breaking change

typeIdent treated myschema.foo[] as a single identifier, producing \"myschema.foo\"[] which Postgres rejects.
@hsusul
hsusul requested review from a team, avallete and soedirgo as code owners August 27, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

columns.create rejects schema-qualified array types such as schema.type[]

1 participant