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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -533,6 +533,7 @@ func (db *DB) Scan(dest interface{}) (tx *DB) {
tx.ScanRows(rows, dest) tx.ScanRows(rows, dest)
} else { } else {
tx.RowsAffected = 0 tx.RowsAffected = 0
tx.AddError(rows.Err())
} }
tx.AddError(rows.Close()) tx.AddError(rows.Close())
} }