From a8fae40417feabfe1721bc1a43e4efac99218660 Mon Sep 17 00:00:00 2001 From: gurkanindibay Date: Tue, 20 Feb 2024 12:51:54 +0300 Subject: [PATCH] Fixes missing flag error --- src/test/regress/multi_1_schedule | 2 +- .../sql/grant_on_database_propagation_from_non_maindb.sql | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/test/regress/multi_1_schedule b/src/test/regress/multi_1_schedule index a05601855..015f74973 100644 --- a/src/test/regress/multi_1_schedule +++ b/src/test/regress/multi_1_schedule @@ -58,7 +58,7 @@ test: multi_metadata_attributes test: multi_read_from_secondaries -test: grant_on_database_propagation +test: grant_on_database_propagation grant_on_database_propagation_from_non_maindb test: alter_database_propagation test: citus_shards diff --git a/src/test/regress/sql/grant_on_database_propagation_from_non_maindb.sql b/src/test/regress/sql/grant_on_database_propagation_from_non_maindb.sql index 8303d2275..21f6b0cc9 100644 --- a/src/test/regress/sql/grant_on_database_propagation_from_non_maindb.sql +++ b/src/test/regress/sql/grant_on_database_propagation_from_non_maindb.sql @@ -3,21 +3,16 @@ -- since public role privileges are inherited by new roles/users set citus.enable_create_database_propagation to on; create database test_2pc_db; - show citus.main_db; revoke connect,temp,temporary on database test_2pc_db from public; - - CREATE SCHEMA grant_on_database_propagation_non_maindb; SET search_path TO grant_on_database_propagation_non_maindb; - -- test grant/revoke CREATE privilege propagation on database create user "myuser'_test"; - \c test_2pc_db - - :master_port grant create on database test_2pc_db to "myuser'_test"; @@ -248,4 +243,6 @@ drop database test_2pc_db; set citus.enable_create_database_propagation to off; DROP SCHEMA grant_on_database_propagation_non_maindb CASCADE; +reset citus.enable_create_database_propagation; + ---------------------------------------------------------------------------