From 8ea2d68dab676a84f23ea1548e364e3c2ae446bd Mon Sep 17 00:00:00 2001 From: jz0 Date: Mon, 6 Dec 2021 19:18:40 +0800 Subject: [PATCH] Add dummy information_schema.triggers for common tenant. --- src/share/inner_table/ob_inner_table_schema.h | 6 ++++-- src/share/inner_table/ob_inner_table_schema_def.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/share/inner_table/ob_inner_table_schema.h b/src/share/inner_table/ob_inner_table_schema.h index 07b56dc9d0..6e84a2011d 100644 --- a/src/share/inner_table/ob_inner_table_schema.h +++ b/src/share/inner_table/ob_inner_table_schema.h @@ -3029,7 +3029,8 @@ const uint64_t tenant_space_tables [] = { OB_GV_GLOBAL_TRANSACTION_ORA_TID, OB_V_GLOBAL_TRANSACTION_ORA_TID, OB_V_RESTORE_POINT_ORA_TID, - OB_V_RSRC_PLAN_ORA_TID, }; + OB_V_RSRC_PLAN_ORA_TID, + OB_TRIGGERS_TID, }; const uint64_t all_ora_mapping_virtual_table_org_tables [] = { OB_ALL_VIRTUAL_SQL_AUDIT_TID, @@ -3886,7 +3887,8 @@ const char* const tenant_space_table_names [] = { OB_GV_GLOBAL_TRANSACTION_ORA_TNAME, OB_V_GLOBAL_TRANSACTION_ORA_TNAME, OB_V_RESTORE_POINT_ORA_TNAME, - OB_V_RSRC_PLAN_ORA_TNAME, }; + OB_V_RSRC_PLAN_ORA_TNAME, + OB_TRIGGERS_TNAME, }; const uint64_t only_rs_vtables [] = { OB_ALL_VIRTUAL_CORE_META_TABLE_TID, diff --git a/src/share/inner_table/ob_inner_table_schema_def.py b/src/share/inner_table/ob_inner_table_schema_def.py index b1a5078a17..1405990377 100644 --- a/src/share/inner_table/ob_inner_table_schema_def.py +++ b/src/share/inner_table/ob_inner_table_schema_def.py @@ -27478,6 +27478,7 @@ def_table_schema( rowkey_columns = [], normal_columns = [], gm_columns = [], + in_tenant_space = True, view_definition = """SELECT CAST(NULL AS CHARACTER(64)) AS TRIGGER_CATALOG, CAST(NULL AS CHARACTER(64)) AS TRIGGER_SCHEMA, -- GitLab