diff --git a/sqlx-core/src/query_as.rs b/sqlx-core/src/query_as.rs index 5a5ae4c73e..7cefb02975 100644 --- a/sqlx-core/src/query_as.rs +++ b/sqlx-core/src/query_as.rs @@ -94,11 +94,9 @@ where O: 'e, A: 'e, { - // FIXME: this should have used `executor.fetch()` but that's a breaking change - // because this technically allows multiple statements in one query string. - #[allow(deprecated)] - self.fetch_many(executor) - .try_filter_map(|step| async move { Ok(step.right()) }) + executor + .fetch(self.inner) + .map(|row| O::from_row(&row?)) .boxed() }