From f4cff7bcf712ef1f2e12c05ceedfe36db1e6a8c3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 15 May 2024 04:35:52 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 66dfd5626..98e37fb4f 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3081,7 +3081,7 @@ def syncDatabaseRepair(version=''): # 数据对齐 for table_name in inconsistent_table: - data_select_sql = 'select * from '+table_name + ' id > 0 limit 1' + data_select_sql = 'select * from '+table_name + ' where id > 0 limit 1' local_select_data = local_db.query(data_select_sql) sync_select_data = sync_db.query(data_select_sql)