fix(dsync): dry-run汇总行漏计stats——逐表新增/更新数字正确但末尾'预计新增0行'误导,补累计
This commit is contained in:
parent
929a538527
commit
12790d835f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user