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: prevent nested switch_to_superuser() from corrupting prev_role_* #71

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

soedirgo
Copy link
Member

@soedirgo soedirgo commented Jan 18, 2024

@soedirgo soedirgo marked this pull request as draft January 18, 2024 14:15
@soedirgo soedirgo force-pushed the fix/nested-switch-to-superuser branch 2 times, most recently from 0683256 to 19374ca Compare January 19, 2024 03:43
@soedirgo soedirgo marked this pull request as ready for review January 19, 2024 03:45
@soedirgo soedirgo marked this pull request as draft January 19, 2024 03:58
@soedirgo soedirgo force-pushed the fix/nested-switch-to-superuser branch 3 times, most recently from a335308 to f866285 Compare January 19, 2024 08:50
@soedirgo soedirgo force-pushed the fix/nested-switch-to-superuser branch from f866285 to 94d6890 Compare January 19, 2024 08:55
@soedirgo soedirgo marked this pull request as ready for review January 19, 2024 09:00
Comment on lines +73 to +79
-- original role is restored on nested switch_to_superuser()
create extension autoinc;
select current_role;
current_role
-----------------
extensions_role
(1 row)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got it. LGTM.

@soedirgo soedirgo merged commit 7334c1b into master Jan 22, 2024
8 checks passed
@soedirgo soedirgo deleted the fix/nested-switch-to-superuser branch January 22, 2024 08:25
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