-
Notifications
You must be signed in to change notification settings - Fork 1.1k
How to insert an ARRAY type? #106
Copy link
Copy link
Closed
Description
I've a struct like:
type Foo struct {
//some other fields here
Things []string `db:"things"`
}When I run something like this through NamedQuery:
INSERT INTO foos (things) VALUES (:things)I get the following error message:
"sql: converting Exec argument #3's type: unsupported type []string, a slice"
My PostgreSQL db has that field set to an ARRAY (of type uuid, but that is besides the point)
Are we just not allowed to use ARRAYs under the hood with sqlx?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels