Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the 'role does not exist' error caused by uppercase characters in… #90

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

aliyoge
Copy link
Contributor

@aliyoge aliyoge commented Aug 8, 2023

When the current session_user contains uppercase characters, calling the update_masks and create_mask_view functions will throw a 'role does not exist' error.

We need to use quote_ident() to preserve the case, and ensure the view_owner stored username is consistent with session_user, containing the correct case.

image image

@michelp
Copy link
Owner

michelp commented Aug 25, 2023

Sorry for delay! I approved test workflow, looks like some function signature checks are missing updates: https://github.com/michelp/pgsodium/pull/90/checks

@aliyoge
Copy link
Contributor Author

aliyoge commented Sep 4, 2023

Sorry, I just updated the signatures of these functions. Could you please check them again?

@michelp michelp merged commit 54ee412 into michelp:main Sep 20, 2023
1 check passed
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.

2 participants