Skip to content

Conversation

toqueteos
Copy link

pq.Array shouldn't wrap values that are already an optimal pq Array type.

x := []string{"a", "b", "c"}
pq.Array(x) // is (*pq.StringArray)
pq.Array(pq.Array(x)) // is (pq.GenericArray)

Repro: https://go.dev/play/p/piFLACJYhC2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants