Skip to content

fix(golang): correctly map nullable PostgreSQL UUID[] columns - #6

Open
nerocorp935 wants to merge 1 commit into
colmev080:mainfrom
nerocorp935:fix/nullable-uuid-array-mapping
Open

fix(golang): correctly map nullable PostgreSQL UUID[] columns#6
nerocorp935 wants to merge 1 commit into
colmev080:mainfrom
nerocorp935:fix/nullable-uuid-array-mapping

Conversation

@nerocorp935

Copy link
Copy Markdown

Closes #1
/claim #1

Summary

  • Corrects type generation logic for nullable PostgreSQL UUID[] array columns.
  • Maps nullable array columns to pointer slice representations (*[]uuid.UUID) when using standard database/sql drivers or when pointer types are configured.
  • Preserves standard non-nullable slice mapping ([]uuid.UUID) for UUID[] NOT NULL columns.
  • Adds comprehensive unit tests under internal/codegen/golang/types_test.go covering driver settings and nullability variations.

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.

🎯 Fix: Nullable PostgreSQL UUID[] columns incorrectly mapped to non-nullable slices causing scan failures

1 participant