Skip to content

Commit

Permalink
fix: 修复闪回查询条件不存在库的错误 TencentBlueKing#7249
Browse files Browse the repository at this point in the history
  • Loading branch information
zfrendo committed Oct 10, 2024
1 parent 44667c2 commit fe351b5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit fe351b5

Please sign in to comment.