Skip to content

Commit 8d897e8

Browse files
committed
fix: add missed default_role
1 parent 47bfa74 commit 8d897e8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

query/src/interpreters/interpreter_user_create.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ impl Interpreter for CreateUserInterpreter {
6363
grants: UserGrantSet::empty(),
6464
quota: UserQuota::no_limit(),
6565
option: plan.user_option,
66+
default_role: None,
6667
};
6768
user_mgr
6869
.add_user(&tenant, user_info, plan.if_not_exists)

query/tests/it/storages/system/users_table.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async fn test_users_table() -> Result<()> {
4040
auth_info: auth_data,
4141
name: "test".to_string(),
4242
hostname: "localhost".to_string(),
43+
default_role: None,
4344
grants: UserGrantSet::empty(),
4445
quota: UserQuota::no_limit(),
4546
option: UserOption::default(),
@@ -56,6 +57,7 @@ async fn test_users_table() -> Result<()> {
5657
auth_info: auth_data.unwrap(),
5758
name: "test1".to_string(),
5859
hostname: "%".to_string(),
60+
default_role: None,
5961
grants: UserGrantSet::empty(),
6062
quota: UserQuota::no_limit(),
6163
option: UserOption::default(),

0 commit comments

Comments
 (0)