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
workload/schemachange: properly escape role names in policy statements
When ALTER POLICY is executed with unescaped role identifiers that start with
numbers, it can cause SQL syntax errors like "trailing junk after numeric
literal". This change adds proper SQL identifier escaping for role names
in ALTER POLICY statements by using lexbase.EscapeSQLIdent, which ensures
that identifiers are properly quoted with double quotes.
The change also avoids a `InFailedSQLTransaction` error by checking `row.Err()`
in the `findExistingPolicy` function.
Fixes: #145277
Release note: none
0 commit comments