mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-09-30 22:42:11 +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
|
||||
.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(());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user