Closed whoiscarlo closed 8 months ago
https://www.postgresql.org/docs/current/arrays.html
Correctly formatting the array used by the Overlap function
Bug fix, feature, docs update, ... Arrays in Postgres use this string format '{10000, 10000, 10000, 10000}' or '{"meeting", "lunch"}'
value []string{"foo", "bar"} turns into foo bar
[]string{"foo", "bar"}
foo bar
Please link any relevant issues here. Seeding database error while running locally
Will turn values []string{"foo", "bar"} into '{"foo", "bar"}'
'{"foo", "bar"}'
https://www.postgresql.org/docs/current/arrays.html
What kind of change does this PR introduce?
Correctly formatting the array used by the Overlap function
Bug fix, feature, docs update, ... Arrays in Postgres use this string format '{10000, 10000, 10000, 10000}' or '{"meeting", "lunch"}'
What is the current behavior?
value
[]string{"foo", "bar"}
turns intofoo bar
Please link any relevant issues here. Seeding database error while running locally
What is the new behavior?
Will turn values
[]string{"foo", "bar"}
into'{"foo", "bar"}'
Additional context
https://www.postgresql.org/docs/current/arrays.html