mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(Sqlite): stop sending rows after first error (#3700)
This commit is contained in:
parent
ad1d7a8aa5
commit
f4c7498523
@ -151,7 +151,8 @@ impl ConnectionWorker {
|
||||
match limit {
|
||||
None => {
|
||||
for res in iter {
|
||||
if tx.send(res).is_err() {
|
||||
let has_error = res.is_err();
|
||||
if tx.send(res).is_err() || has_error {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -171,7 +172,8 @@ impl ConnectionWorker {
|
||||
}
|
||||
}
|
||||
}
|
||||
if tx.send(res).is_err() {
|
||||
let has_error = res.is_err();
|
||||
if tx.send(res).is_err() || has_error {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user