Skip to content

fix(realtime): parse postgres array literals instead of splitting on commas - #436

Open
fresh55 wants to merge 1 commit into
supabase:masterfrom
fresh55:fix/realtime-array-literals
Open

fresh55 wants to merge 1 commit into
supabase:masterfrom
fresh55:fix/realtime-array-literals

Conversation

@fresh55

@fresh55 fresh55 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Closes #393.

IntArrayConverter and StringArrayConverter split the literal on commas, so a quoted comma made extra elements, NULL came back as text and a nested array was dropped:

before  {"a,b",c}   ["\"a", "b\"", "c"]
        {NULL,a}    ["NULL", "a"]
after   {"a,b",c}   ["a,b", "c"]
        {NULL,a}    [null, "a"]

They now parse the literal the way supabase-flutter does: quotes, backslash escapes, unquoted NULL as null, at most six dimensions. An internal converter reads {{1,2},{3,4}} into List<List<int>> or List<List<string>>. Anything unreadable still comes back as null.

Same gap in the two old converters is #437.

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.

parity(realtime): parse Postgres array literals instead of splitting on commas [from supabase-flutter]

1 participant