Skip to content

Commit

Permalink
Merge pull request #28683 from taosdata/enh/TS-5574-3.0
Browse files Browse the repository at this point in the history
enh: add active info for show grants logs
  • Loading branch information
guanshengliang authored Nov 7, 2024
2 parents 33c8aeb + a6c7a7c commit 95b0430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/common/src/systable.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ static const SSysDbTableSchema userGrantsLogsSchema[] = {
{.name = "state", .bytes = 1536 + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true},
{.name = "active", .bytes = 512 + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true},
{.name = "machine", .bytes = TSDB_GRANT_LOG_COL_LEN + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true},
{.name = "active_info", .bytes = 512 + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_VARCHAR, .sysInfo = true},
};

static const SSysDbTableSchema userMachinesSchema[] = {
Expand Down
2 changes: 1 addition & 1 deletion tests/system-test/0-others/information_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def ins_columns_check(self):

tdSql.query("select * from information_schema.ins_columns where db_name ='information_schema'")
tdLog.info(len(tdSql.queryResult))
tdSql.checkEqual(True, len(tdSql.queryResult) in range(280, 281))
tdSql.checkEqual(True, len(tdSql.queryResult) in range(281, 282))

tdSql.query("select * from information_schema.ins_columns where db_name ='performance_schema'")
tdSql.checkEqual(56, len(tdSql.queryResult))
Expand Down

0 comments on commit 95b0430

Please sign in to comment.