diff --git a/tests/postgres/derives.rs b/tests/postgres/derives.rs index c96f1b9382..bfc3b81ca4 100644 --- a/tests/postgres/derives.rs +++ b/tests/postgres/derives.rs @@ -627,7 +627,7 @@ async fn test_struct_default() -> anyhow::Result<()> { #[derive(Debug, sqlx::FromRow)] #[sqlx(default)] struct HasDefault { - value: Option, + not_default: Option, default_a: Option, default_b: Option, } @@ -639,7 +639,7 @@ async fn test_struct_default() -> anyhow::Result<()> { .await?; println!("{has_default:?}"); - assert_eq!(has_default.value, Some(1)); + assert_eq!(has_default.not_default, Some(1)); assert_eq!(has_default.default_a, None); assert_eq!(has_default.default_b, None);