Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions regression-test/suites/sql_block_rule_p0/test_sql_block_rule.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,23 @@ suite("test_sql_block_rule", "nonConcurrent") {
"""
}

multi_sql """
drop SQL_BLOCK_RULE if exists rule_drop_r;
try {
multi_sql """
drop SQL_BLOCK_RULE if exists rule_drop_r;

CREATE SQL_BLOCK_RULE rule_drop
PROPERTIES(
"sql"="select \\* from order_analysis",
"global"="true",
"enable"="true");
CREATE SQL_BLOCK_RULE rule_drop_r
PROPERTIES(
"sql"="select \\* from order_analysis",
"global"="true",
"enable"="true");

ALTER SQL_BLOCK_RULE rule_drop PROPERTIES("global"="true");
ALTER SQL_BLOCK_RULE rule_drop_r PROPERTIES("global"="true");

select NULL;
"""
select NULL;
"""
} finally {
sql """
drop SQL_BLOCK_RULE if exists rule_drop_r;
"""
}
}