fix:clickhouse error not capture(#6277) (#6321)

Co-authored-by: zhuangg <zhuangg@mingyuanyun.com>
This commit is contained in:
201430098137
2023-05-17 10:15:41 +08:00
committed by GitHub
parent c3d7d08b9a
commit f5837deef3
+1
View File
@@ -533,6 +533,7 @@ func (db *DB) Scan(dest interface{}) (tx *DB) {
tx.ScanRows(rows, dest)
} else {
tx.RowsAffected = 0
tx.AddError(rows.Err())
}
tx.AddError(rows.Close())
}