Skip to content

PostgreSQL - Could not convert value to IpAddr #40

Open
@carlos-rian

Description

@carlos-rian

Description

I ran a query_raw where the PostgreSQL column is of type CIDR or MacAddr but I got this error.

This message is in the src/ast/values.rs file, line 788.

Value in column: 192.168.100.128/25 and 08:00:2b:01:02:03

Error

CIDR
Error querying the database: error deserializing column 24: cannot convert between the Rust type core::option::Option<std::net::ip::IpAddr> and the Postgres type cidr

MacAddr has the same problem
Column type 'macaddr' could not be deserialized from the database.

issue core link: prisma/quaint#416

Metadata

Metadata

Assignees

No one assigned

    Labels

    not a bugThe quaint doesn't have support yet.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions