diff --git a/sqlx-core/src/types/json.rs b/sqlx-core/src/types/json.rs index f9d95c9b01..2cff5e149b 100644 --- a/sqlx-core/src/types/json.rs +++ b/sqlx-core/src/types/json.rs @@ -196,20 +196,6 @@ where } } -impl Type for Box -where - for<'a> Json<&'a Self>: Type, - DB: Database, -{ - fn type_info() -> DB::TypeInfo { - as Type>::type_info() - } - - fn compatible(ty: &DB::TypeInfo) -> bool { - as Type>::compatible(ty) - } -} - impl<'q, DB> Encode<'q, DB> for JsonRawValue where for<'a> Json<&'a Self>: Encode<'q, DB>, diff --git a/tests/postgres/derives.rs b/tests/postgres/derives.rs index 350bb04089..96687e3113 100644 --- a/tests/postgres/derives.rs +++ b/tests/postgres/derives.rs @@ -818,7 +818,7 @@ async fn test_custom_pg_array() -> anyhow::Result<()> { impl PgHasArrayType for User { fn array_type_info() -> sqlx::postgres::PgTypeInfo { - sqlx::postgres::PgTypeInfo::array_of("Gebruiker") + sqlx::postgres::PgTypeInfo::array_of("User") } } Ok(()) diff --git a/tests/postgres/setup.sql b/tests/postgres/setup.sql index 65487b8ae5..49b7fcfeea 100644 --- a/tests/postgres/setup.sql +++ b/tests/postgres/setup.sql @@ -69,7 +69,7 @@ CREATE TABLE circles ( EXCLUDE USING gist (c WITH &&) ); -CREATE DOMAIN positive_int AS integer CHECK (VALUE >= 0); +CREATE DOMAIN positive_int AS integer CHECK (VALUE > 0); CREATE DOMAIN percentage AS positive_int CHECK (VALUE <= 100); CREATE TYPE person as (