mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where SQL for revoke statements are not shown for databases. Fixes #4258
This commit is contained in:
committed by
Akshay Joshi
parent
7ecc0169df
commit
7f2ff5af5c
@@ -104,7 +104,8 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
|
||||
'timestamptz_1': '<TIMESTAMPTZ_1>',
|
||||
'password': '<PASSWORD>',
|
||||
'pga_job_id': '<PGA_JOB_ID>',
|
||||
'timestamptz_2': '<TIMESTAMPTZ_2>'}
|
||||
'timestamptz_2': '<TIMESTAMPTZ_2>',
|
||||
'db_name': '<TEST_DB_NAME>'}
|
||||
|
||||
resql_module_list = create_resql_module_list(
|
||||
BaseTestGenerator.re_sql_module_list,
|
||||
@@ -752,6 +753,10 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
|
||||
sql = sql.replace(self.JSON_PLACEHOLDERS['pga_job_id'],
|
||||
str(object_id))
|
||||
|
||||
if 'TEST_DB_NAME' in scenario:
|
||||
sql = sql.replace(self.JSON_PLACEHOLDERS['db_name'],
|
||||
self.server_information['test_db_name'])
|
||||
|
||||
return sql
|
||||
|
||||
def replace_placeholder_with_id(self, value):
|
||||
|
||||
Reference in New Issue
Block a user