Skip to content

the Type derive in 0.8 seems to generate a PgHasArrayType impl #3445

@cemoktra

Description

@cemoktra

Bug Description

I used to have several PgHasArrayType for some struct that derive Type. Updating to 0.8.0 i now have conflicting implementations. Problem is, if i remove my custom implementation my tests start failing. I was looking around and found the no_pg_array attribute, but if i add this i get:
error: unused #[sqlx(no_pg_array)]; derive does not emit PgHasArrayType impls for custom structs

Info

  • SQLx version: 0.8.0
  • SQLx features enabled: "sqlx-postgres", "macros", "postgres", "uuid", "rust_decimal", "runtime-tokio-rustls", "chrono", "json", "ipnetwork",
  • Database server and version: Postgres 14
  • Operating system: Linux
  • rustc --version: 1.79.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions