fix(dsync): dry-run汇总行漏计stats——逐表新增/更新数字正确但末尾'预计新增0行'误导,补累计

This commit is contained in:
yumoqing 2026-09-09 17:21:21 +08:00
parent 929a538527
commit 12790d835f

View File

@ -317,8 +317,10 @@ def cmd_import(pkg_file, dry_run=False):
ex = cur.fetchone() is not None
if ex:
n_u += 1
stats["updated"] += 1
else:
n_i += 1
stats["inserted"] += 1
continue
res = upsert_row(conn, tbl, pk, row, tcols)
stats[res if res in stats else "skipped"] += 1