fix tests for multiply row policies on same column

This commit is contained in:
cmsxbc 2021-12-06 23:28:19 +08:00 committed by mergify-bot
parent e4b405716f
commit fab1e53489
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
4
1
2
3
3
4
4
@ -6,3 +9,4 @@
3
2
1
1

View File

@ -10,9 +10,12 @@ SELECT count() FROM 02131_multiply_row_policies_on_same_column;
CREATE ROW POLICY 02131_filter_1 ON 02131_multiply_row_policies_on_same_column USING x=1 TO ALL;
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
CREATE ROW POLICY 02131_filter_2 ON 02131_multiply_row_policies_on_same_column USING x=2 TO ALL;
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
CREATE ROW POLICY 02131_filter_3 ON 02131_multiply_row_policies_on_same_column USING x=3 TO ALL;
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
SELECT count() FROM 02131_multiply_row_policies_on_same_column;
DROP ROW POLICY 02131_filter_1 ON 02131_multiply_row_policies_on_same_column;
@ -39,7 +42,7 @@ CREATE ROW POLICY 02131_filter_2_1 ON 02131_multiply_row_policies_on_same_column
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
CREATE ROW POLICY 02131_filter_3_1 ON 02131_multiply_row_policies_on_same_column_1 USING x>3 AS RESTRICTIVE TO ALL;
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
SELECT count() FROM 02131_multiply_row_policies_on_same_column_1;
DROP TABLE 02131_multiply_row_policies_on_same_column_1;
DROP ROW POLICY 02131_filter_1_1 ON 02131_multiply_row_policies_on_same_column_1;