Skip to content

Commit

Permalink
fix: default values for user table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2024 committed May 17, 2024
1 parent 1ec426d commit 021d867
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/nameserver/name_server_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1390,13 +1390,13 @@ base::Status NameServerImpl::PutUserRecord(const std::string& host, const std::s
row_values.push_back(host);
row_values.push_back(user);
row_values.push_back(password);
row_values.push_back(""); // password_last_changed
row_values.push_back(""); // password_expired_time
row_values.push_back(""); // create_time
row_values.push_back(""); // update_time
row_values.push_back(""); // account_type
row_values.push_back(""); // privileges
row_values.push_back(""); // extra_info
row_values.push_back("0"); // password_last_changed
row_values.push_back("0"); // password_expired_time
row_values.push_back("0"); // create_time
row_values.push_back("0"); // update_time
row_values.push_back("1"); // account_type
row_values.push_back("0"); // privileges
row_values.push_back("null"); // extra_info

std::string encoded_row;
codec::RowCodec::EncodeRow(row_values, table_info->column_desc(), 1, encoded_row);
Expand Down

0 comments on commit 021d867

Please sign in to comment.