From c38b2001317a3771652d6d1a28bafd1b31b6a928 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Tue, 25 Oct 2022 11:08:56 +0800 Subject: [PATCH] fix: wrong permissions of 'show variables' command --- source/libs/planner/src/planOptimizer.c | 2 +- tests/script/tsim/user/privilege_sysinfo.sim | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index 2963b3123e..0b38cdb3ba 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -2477,7 +2477,7 @@ static const SOptimizeRule optimizeRuleSet[] = { {.pName = "RewriteUnique", .optimizeFunc = rewriteUniqueOptimize}, {.pName = "LastRowScan", .optimizeFunc = lastRowScanOptimize}, {.pName = "TagScan", .optimizeFunc = tagScanOptimize}, - {.pName = "PushDownLimit", .optimizeFunc = pushDownLimitOptimize} + // {.pName = "PushDownLimit", .optimizeFunc = pushDownLimitOptimize} }; // clang-format on diff --git a/tests/script/tsim/user/privilege_sysinfo.sim b/tests/script/tsim/user/privilege_sysinfo.sim index 1614c3be55..75136be90e 100644 --- a/tests/script/tsim/user/privilege_sysinfo.sim +++ b/tests/script/tsim/user/privilege_sysinfo.sim @@ -137,10 +137,9 @@ sql_error show create database d2 sql show create table d2.stb2; sql show create table d2.ctb2; sql show create table d2.ntb2; -sql_error show variables; sql show local variables; sql_error show dnode 1 variables; -sql_error show variables; +sql show variables; print =============== check information_schema -- GitLab