@@ -97,14 +97,14 @@ The table below shows the correspondence between PostgreSQL and Python types.
9797| | :class: `ipaddress.IPv6Network\ |
9898| | <python:ipaddress.IPv6Network>` |
9999+----------------------+-----------------------------------------------------+
100- | ``inet `` | :class: `ipaddress.IPv4Network \ |
101- | | <python:ipaddress.IPv4Network >`, |
102- | | :class: `ipaddress.IPv6Network \ |
103- | | <python:ipaddress.IPv6Network >`, |
100+ | ``inet `` | :class: `ipaddress.IPv4Interface \ |
101+ | | <python:ipaddress.IPv4Interface >`, |
102+ | | :class: `ipaddress.IPv6Interface \ |
103+ | | <python:ipaddress.IPv6Interface >`, |
104104| | :class: `ipaddress.IPv4Address\ |
105105| | <python:ipaddress.IPv4Address>`, |
106106| | :class: `ipaddress.IPv6Address\ |
107- | | <python:ipaddress.IPv6Address>` |
107+ | | <python:ipaddress.IPv6Address>` [ #f1 ]_ |
108108+----------------------+-----------------------------------------------------+
109109| ``macaddr `` | :class: `str <python:str> ` |
110110+----------------------+-----------------------------------------------------+
@@ -127,7 +127,7 @@ The table below shows the correspondence between PostgreSQL and Python types.
127127| ``interval `` | :class: `datetime.timedelta \ |
128128| | <python:datetime.timedelta>` |
129129+----------------------+-----------------------------------------------------+
130- | ``float ``, | :class: `float <python:float> ` [#f1 ]_ |
130+ | ``float ``, | :class: `float <python:float> ` [#f2 ]_ |
131131| ``double precision `` | |
132132+----------------------+-----------------------------------------------------+
133133| ``smallint ``, | :class: `int <python:int> ` |
@@ -158,7 +158,10 @@ The table below shows the correspondence between PostgreSQL and Python types.
158158
159159All other types are encoded and decoded as text by default.
160160
161- .. [#f1 ] Inexact single-precision ``float `` values may have a different
161+ .. [#f1 ] Prior to version 0.20.0, asyncpg erroneously treated ``inet `` values
162+ with prefix as ``IPvXNetwork `` instead of ``IPvXInterface ``.
163+
164+ .. [#f2 ] Inexact single-precision ``float `` values may have a different
162165 representation when decoded into a Python float. This is inherent
163166 to the implementation of limited-precision floating point types.
164167 If you need the decimal representation to match, cast the expression
0 commit comments