Add Reverse Engineered SQL tests for Schemas. Fixes #4575

This commit is contained in:
Akshay Joshi
2019-08-29 18:32:08 +05:30
parent d6da1cf25c
commit e0c53e7d1d
28 changed files with 807 additions and 5 deletions

View File

@@ -168,7 +168,12 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
elif arg == 'did':
options['did'] = int(self.server_information['db_id'])
elif arg == 'scid':
options['scid'] = int(self.schema_id)
# For schema node object_id is the actual schema id.
if endpoint.__contains__('NODE-schema') and \
object_id is not None:
options['scid'] = int(object_id)
else:
options['scid'] = int(self.schema_id)
elif arg == 'tid' and self.table_id:
options['tid'] = int(self.table_id)
else: