Skip to content

fix: fall back to object for unresolved column types instead of throwing#423

Open
ballistic-booger wants to merge 1 commit into
DaredevilOSS:mainfrom
ballistic-booger:type-fallback-instead-of-throwing
Open

fix: fall back to object for unresolved column types instead of throwing#423
ballistic-booger wants to merge 1 commit into
DaredevilOSS:mainfrom
ballistic-booger:type-fallback-instead-of-throwing

Conversation

@ballistic-booger

Copy link
Copy Markdown
Contributor
  • map any and hstore Postgres types to object in NpgsqlDriver
  • sqlc reports any when it can't infer a column's type; previously this made codegen throw a NotSupportedException
  • generated readers use GetValue so those columns come back as plain object values

- include any and hstore types in the object variable mapping
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.

1 participant