mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-11-01 22:12:50 +00:00
test: fix decode test in macros
This commit is contained in:
parent
51c5d82fec
commit
55f6c9a2e9
@ -250,8 +250,8 @@ async fn test_nullable_err() -> anyhow::Result<()> {
|
|||||||
.await
|
.await
|
||||||
.unwrap_err();
|
.unwrap_err();
|
||||||
|
|
||||||
if let sqlx::Error::Decode(err) = &err {
|
if let sqlx::Error::ColumnDecode { source, ..} = &err {
|
||||||
if let Some(sqlx::error::UnexpectedNullError) = err.downcast_ref() {
|
if let Some(sqlx::error::UnexpectedNullError) = source.downcast_ref() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user