Skip to content

Is it possible to support ipaddress.IPv4Interface in the /codecs/network.pyx #497

Closed
@mauriciodtdt

Description

@mauriciodtdt

Currently the library just allows to insert ipaddress.IPv4Address and ipaddress.IPv4Networks to a postgresdb.
When I tried to insert an ipaddress.IPv4Interface, I got following error:

E ValueError: '10.0.0.1/30' does not appear to be an IPv4 or IPv6 address

Cheers

  • asyncpg version:0.19.0
  • PostgreSQL version: 9.6.11
  • Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
    the issue with a local PostgreSQL install?
    :
  • Python version:3.7
  • Platform:
  • Do you use pgbouncer?:
  • Did you install asyncpg with pip?:
  • If you built asyncpg locally, which version of Cython did you use?:
  • Can the issue be reproduced under both asyncio and
    uvloop?
    :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions