fix:clickhouse error not capture(#6277)

This commit is contained in:
zhuangg 2023-05-16 12:24:12 +08:00
parent c3d7d08b9a
commit 09c8e5eeee

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())
}