test: fix decode test in macros

This commit is contained in:
Ryan Leckey 2020-07-26 18:11:15 -07:00
parent 51c5d82fec
commit 55f6c9a2e9

View File

@ -250,8 +250,8 @@ async fn test_nullable_err() -> anyhow::Result<()> {
.await
.unwrap_err();
if let sqlx::Error::Decode(err) = &err {
if let Some(sqlx::error::UnexpectedNullError) = err.downcast_ref() {
if let sqlx::Error::ColumnDecode { source, ..} = &err {
if let Some(sqlx::error::UnexpectedNullError) = source.downcast_ref() {
return Ok(());
}
}