Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
135634: sql: fix statement generation when ensuring roles r=souravcrl a=rafiss Since we started skipping over non-existent roles in 35f723e, we need to make sure we only add commas at the appropriate point. The test update demonstrates that there was a bug before this patch, as it would fail with: ``` expected: ok defaultdb found: ERROR: LDAP authorization: error assigning roles to user ldap_user: EnsureUserOnlyBelongsToRoles-grant: at or near ",": syntax error (SQLSTATE 42601) HINT: try \h GRANT DETAIL: source SQL: GRANT , "ldap-parent-synced" TO ldap_user ``` informs #133779 Release note: None Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information