From fe351b546f2eb6af709916f22b5e059bf591bbd4 Mon Sep 17 00:00:00 2001 From: zfrendo <842557664@qq.com> Date: Thu, 10 Oct 2024 11:32:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=97=AA=E5=9B=9E?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E5=BA=93=E7=9A=84=E9=94=99=E8=AF=AF=20#7249?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mysql/filter_database_table_by_flashback_input.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbm-ui/backend/flow/plugins/components/collections/mysql/filter_database_table_by_flashback_input.py b/dbm-ui/backend/flow/plugins/components/collections/mysql/filter_database_table_by_flashback_input.py index 01250b6146..413fac4359 100644 --- a/dbm-ui/backend/flow/plugins/components/collections/mysql/filter_database_table_by_flashback_input.py +++ b/dbm-ui/backend/flow/plugins/components/collections/mysql/filter_database_table_by_flashback_input.py @@ -64,6 +64,8 @@ def _execute(self, data, parent_data) -> bool: return False databases_filtered = [ele["SCHEMA_NAME"] for ele in db_filter_res[0]["cmd_results"][0]["table_data"]] + if len(databases_filtered) == 0: + databases_filtered.append("") # tables 和 tables_ignore 使用三元操作符返回一个恒真表达式, 简化代码 table_filter_sql = (