Skip to content

fix: preserve equals signs in function config_params - #1139

Open
hsusul wants to merge 1 commit into
supabase:masterfrom
hsusul:fix/function-config-params-equals
Open

fix: preserve equals signs in function config_params#1139
hsusul wants to merge 1 commit into
supabase:masterfrom
hsusul:fix/function-config-params-equals

Conversation

@hsusul

@hsusul hsusul commented Sep 2, 2026

Copy link
Copy Markdown

Summary

  • Parse proconfig by splitting on the first = only (split_part + substring via lateral unnest)
  • Values like application_name=api=worker no longer truncate to api

Closes #1137

Same class of bug as role config (#1117), but in the functions catalog SQL used by Studio list/retrieve/update.

Test plan

  • Regression: function with SET application_name TO 'api=worker'config_params.application_name === 'api=worker'
  • Confirmed pre-fix SQL returned api

Parsing proconfig with string_to_array(...)[2] truncated values that
contain additional '=' characters (e.g. application_name=api=worker).
Split on the first '=' only so Studio round-trips stay intact.

Closes supabase#1137
@hsusul
hsusul requested review from a team, avallete and soedirgo as code owners September 2, 2026 19:17
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.

Function config_params truncates values containing equals signs

1 participant