You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: preserve nested function calls in RLS policy expressions (#377) (#378)
normalizeExpressionParentheses had a regex that incorrectly matched
nested function calls like unnest(get_user_assigned_projects()) as
redundantly-wrapped single function calls, stripping the outer parens
and merging tokens into invalid SQL (unnestget_user_assigned_projects()).
Remove the broken regex. The parenthesized form that pg_get_expr returns
(e.g., (current_setting(...))::integer) is valid SQL and needs no
unwrapping.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments