Fixed an issue where SQL for revoke statements are not shown for databases. Fixes #4258

This commit is contained in:
Yogesh Mahajan
2022-03-28 17:35:54 +05:30
committed by Akshay Joshi
parent 7ecc0169df
commit 7f2ff5af5c
52 changed files with 807 additions and 139 deletions

View File

@@ -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):