Skip to content

Commit c73c29a

Browse files
committed
fix: use Executor::fetch in QueryAs::fetch
1 parent 9079720 commit c73c29a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sqlx-core/src/query_as.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ where
9494
O: 'e,
9595
A: 'e,
9696
{
97-
// FIXME: this should have used `executor.fetch()` but that's a breaking change
98-
// because this technically allows multiple statements in one query string.
99-
#[allow(deprecated)]
100-
self.fetch_many(executor)
101-
.try_filter_map(|step| async move { Ok(step.right()) })
97+
executor
98+
.fetch(self.inner)
99+
.map(|row| O::from_row(&row))
102100
.boxed()
103101
}
104102

0 commit comments

Comments
 (0)