Update issue_104 test to use map instead of try_map

This commit is contained in:
Jonas Platte 2021-01-21 16:26:57 +01:00 committed by Ryan Leckey
parent d3b7a0783e
commit 7ebd362453

View file

@ -216,8 +216,8 @@ async fn it_can_return_interleaved_nulls_issue_104() -> anyhow::Result<()> {
let mut conn = new::<Postgres>().await?;
let tuple = sqlx::query("SELECT NULL, 10::INT, NULL, 20::INT, NULL, 40::INT, NULL, 80::INT")
.try_map(|row: PgRow| {
Ok((
.map(|row: PgRow| {
(
row.get::<Option<i32>, _>(0),
row.get::<Option<i32>, _>(1),
row.get::<Option<i32>, _>(2),
@ -226,7 +226,7 @@ async fn it_can_return_interleaved_nulls_issue_104() -> anyhow::Result<()> {
row.get::<Option<i32>, _>(5),
row.get::<Option<i32>, _>(6),
row.get::<Option<i32>, _>(7),
))
)
})
.fetch_one(&mut conn)
.await?;