Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert Postgres' varchar[] to Swift's [String] #113

Closed
coldbrew1420 opened this issue Jun 21, 2020 · 0 comments · Fixed by #114
Closed

Cannot convert Postgres' varchar[] to Swift's [String] #113

coldbrew1420 opened this issue Jun 21, 2020 · 0 comments · Fixed by #114
Labels
bug Something isn't working
Projects

Comments

@coldbrew1420
Copy link

Given a preexisting postgresql schema with character varying[] column, converting to a [String] field in my Fluent model fails. It works with a Postgres text[] column, but with character varying[] it complains :

field: temp type: Array error: typeMismatch(Swift.Array<Swift.String>, Swift.DecodingError.Context(codingPath: [], debugDescription: "Could not convert to Array: 0x000000010000000000000413000000020000000100000001610000000162 (UNKNOWN 1015)", underlyingError: nil))

@tanner0101 tanner0101 transferred this issue from vapor/fluent-postgres-driver Jul 14, 2020
@tanner0101 tanner0101 added the bug Something isn't working label Jul 14, 2020
Vapor 4 automation moved this from To Do to Done Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Vapor 4
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants