vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
149 stars 53 forks source link

Array encoding to JSONB #73

Closed hjuraev closed 6 years ago

hjuraev commented 6 years ago

var participants: [Participant] = []

this property converted to single JSONB object while migration created as JSONB[] column

[ ERROR ] ⚠️ [PostgreSQLError.server.error.transformAssignedExpr: column "participants" is of type jsonb[] but expression is of type jsonb] [Suggested fixes: You will need to rewrite or cast the expression.] (RouterController.swift:976)

tanner0101 commented 6 years ago

See #35. A test has been added for this and is working properly. This is likely related to a bug that has been fixed. Run swift package update and let me know if you still see the issue, thanks!