@@ -97,14 +97,14 @@ The table below shows the correspondence between PostgreSQL and Python types.
97
97
| | :class: `ipaddress.IPv6Network\ |
98
98
| | <python:ipaddress.IPv6Network>` |
99
99
+----------------------+-----------------------------------------------------+
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 >`, |
104
104
| | :class: `ipaddress.IPv4Address\ |
105
105
| | <python:ipaddress.IPv4Address>`, |
106
106
| | :class: `ipaddress.IPv6Address\ |
107
- | | <python:ipaddress.IPv6Address>` |
107
+ | | <python:ipaddress.IPv6Address>` [ #f1 ]_ |
108
108
+----------------------+-----------------------------------------------------+
109
109
| ``macaddr `` | :class: `str <python:str> ` |
110
110
+----------------------+-----------------------------------------------------+
@@ -127,7 +127,7 @@ The table below shows the correspondence between PostgreSQL and Python types.
127
127
| ``interval `` | :class: `datetime.timedelta \ |
128
128
| | <python:datetime.timedelta>` |
129
129
+----------------------+-----------------------------------------------------+
130
- | ``float ``, | :class: `float <python:float> ` [#f1 ]_ |
130
+ | ``float ``, | :class: `float <python:float> ` [#f2 ]_ |
131
131
| ``double precision `` | |
132
132
+----------------------+-----------------------------------------------------+
133
133
| ``smallint ``, | :class: `int <python:int> ` |
@@ -158,7 +158,10 @@ The table below shows the correspondence between PostgreSQL and Python types.
158
158
159
159
All other types are encoded and decoded as text by default.
160
160
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
162
165
representation when decoded into a Python float. This is inherent
163
166
to the implementation of limited-precision floating point types.
164
167
If you need the decimal representation to match, cast the expression
0 commit comments