GORM Playground Link
https://github.com/go-gorm/playground/pull/759
Description
I want to have a table, where the colum can store an array, like text[],
The full datail is in linked go playground PR.
Error messages truncated:
ERROR: malformed array literal:
DETAIL: Array value must start with "{" or dimension information.
Comment From: Mikcl
Note that i think postgres supports text[], but mysql and sqlite do not.
Comment From: yurihartmann
Same error here, any solution?
Comment From: Udhayarajan
If you're using Postgres as a db Use pq.StringArray from "github.com/lib/pq", as this array is specific to database features. It's uncertain whether GORM will handle it.