GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
326 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE FUNCTION immutable_array_to_string(arr ANYARRAY, sep TEXT)
  4. RETURNS text
  5. AS $$
  6. SELECT array_to_string(arr, sep);
  7. $$
  8. LANGUAGE SQL
  9. IMMUTABLE;
  10. -- +goose StatementEnd
  11. -- +goose Down
  12. -- +goose StatementBegin
  13. DROP FUNCTION IF EXISTS immutable_array_to_string;
  14. -- +goose StatementEnd