mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
parent
05627ac0f9
commit
86198c1c21
1
NEWS
1
NEWS
|
@ -19,6 +19,7 @@ New features:
|
|||
- The attributes `~connection.notices` and `~connection.notifies` can be
|
||||
customized replacing them with any object exposing an `!append()` method
|
||||
(:ticket:`#326`).
|
||||
- old ``inet`` adapters deprecated (:ticket:`#343`).
|
||||
- Added `~psycopg2.extensions.quote_ident()` function (:ticket:`#359`).
|
||||
- Added `~connection.get_dsn_parameters()` connection method (:ticket:`#364`).
|
||||
|
||||
|
|
|
@ -934,8 +934,9 @@ UUID data type
|
|||
:sql:`inet` data type
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. versionadded:: 2.0.9
|
||||
.. versionchanged:: 2.4.5 added inet array support.
|
||||
.. deprecated:: 2.7
|
||||
these objects will not receive further development and disappear in future
|
||||
versions
|
||||
|
||||
.. doctest::
|
||||
|
||||
|
|
|
@ -686,6 +686,11 @@ def register_inet(oid=None, conn_or_curs=None):
|
|||
:param conn_or_curs: where to register the typecaster. If not specified,
|
||||
register it globally.
|
||||
"""
|
||||
import warnings
|
||||
warnings.warn(
|
||||
"the inet adapter is deprecated, it's not very useful",
|
||||
DeprecationWarning)
|
||||
|
||||
if not oid:
|
||||
oid1 = 869
|
||||
oid2 = 1041
|
||||
|
|
Loading…
Reference in New Issue
Block a user