diff --git a/NEWS b/NEWS index 6e81269e..532540bc 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ What's new in psycopg 2.6 New features: - Added support for large objects larger than 2GB. +- Python `time` objects with a tzinfo specified and PostgreSQL :sql:`timetz` + data are converted into each other (ticket #272). Bug fixes: diff --git a/doc/src/usage.rst b/doc/src/usage.rst index 5cd4a0d7..da3f01fc 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -245,7 +245,8 @@ types: +--------------------+-------------------------+--------------------------+ | `!date` | :sql:`date` | :ref:`adapt-date` | +--------------------+-------------------------+ | - | `!time` | :sql:`time` | | + | `!time` | | :sql:`time` | | + | | | :sql:`timetz` | | +--------------------+-------------------------+ | | `!datetime` | | :sql:`timestamp` | | | | | :sql:`timestamptz` | | @@ -482,7 +483,7 @@ Date/Time objects adaptation Python builtin `~datetime.datetime`, `~datetime.date`, `~datetime.time`, `~datetime.timedelta` are converted into PostgreSQL's -:sql:`timestamp[tz]`, :sql:`date`, :sql:`time`, :sql:`interval` data types. +:sql:`timestamp[tz]`, :sql:`date`, :sql:`time[tz]`, :sql:`interval` data types. Time zones are supported too. The Egenix `mx.DateTime`_ objects are adapted the same way::