Skip to content

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

@coldbrew1420

Description

@coldbrew1420

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions