We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8cd0c6 commit 8bb3ad4Copy full SHA for 8bb3ad4
src/backend/commands/user.c
@@ -693,14 +693,14 @@ AlterRole(ParseState *pstate, AlterRoleStmt *stmt)
693
*/
694
if (dissuper)
695
{
696
- bool should_be_super = BoolGetDatum(boolVal(dissuper->arg));
+ bool should_be_super = boolVal(dissuper->arg);
697
698
if (!should_be_super && roleid == BOOTSTRAP_SUPERUSERID)
699
ereport(ERROR,
700
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
701
errmsg("permission denied: bootstrap user must be superuser")));
702
703
- new_record[Anum_pg_authid_rolsuper - 1] = should_be_super;
+ new_record[Anum_pg_authid_rolsuper - 1] = BoolGetDatum(should_be_super);
704
new_record_repl[Anum_pg_authid_rolsuper - 1] = true;
705
}
706
0 commit comments