This is an automated email from the ASF dual-hosted git repository.
chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/cbdb-postgres-merge by this
push:
new 6e00ad9085a Fix errors for roleattributes
6e00ad9085a is described below
commit 6e00ad9085a56182fa1015163cf5310ecb06abe7
Author: Jinbao Chen <[email protected]>
AuthorDate: Sat Nov 15 20:05:51 2025 +0800
Fix errors for roleattributes
---
src/backend/commands/user.c | 6 +++---
src/test/regress/serial_schedule | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index 89b400ab533..a7531357afa 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -440,13 +440,13 @@ CreateRole(ParseState *pstate, CreateRoleStmt *stmt)
if (dresgroup)
resgroup = strVal(linitial((List *) dresgroup->arg));
if (dbypassRLS)
- bypassrls = intVal(dbypassRLS->arg) != 0;
+ bypassrls = boolVal(dbypassRLS->arg);
if (dprofile)
profilename = strVal(dprofile->arg);
if (daccountIsLock)
- account_is_lock = intVal(daccountIsLock->arg) != 0;
+ account_is_lock = boolVal(daccountIsLock->arg);
if (denableProfile)
- enable_profile = intVal(denableProfile->arg) != 0;
+ enable_profile = boolVal(denableProfile->arg);
/*
* Only the super user has the privileges of profile.
diff --git a/src/test/regress/serial_schedule b/src/test/regress/serial_schedule
index 44a9ad50c4e..d357c8769ed 100644
--- a/src/test/regress/serial_schedule
+++ b/src/test/regress/serial_schedule
@@ -78,7 +78,7 @@ test: typed_table
test: vacuum
test: drop_if_exists
test: updatable_views
-# test: roleattributes
+test: roleattributes
# test: create_am
# test: hash_func
# test: errors
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]