DECIMAL typecaster imported into the extensions module.

This commit is contained in:
Daniele Varrazzo 2010-04-13 23:48:31 +01:00
parent 595dc7effa
commit 54e9c89ea4
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-04-13 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* lib/extensions.py: DECIMAL typecaster imported from _psycopg.
2010-04-05 Federico Di Gregorio <fog@initd.org>
* Fixed problem with asynchronous NOTIFYs.

View File

@ -199,7 +199,7 @@ deal with Python objects adaptation:
.. versionchanged:: 2.0.14
previously the adapter was not exposed by the `extensions`
module. In older version it can be imported from the implementation
module. In older versions it can be imported from the implementation
module `!psycopg2._psycopg`.
@ -495,6 +495,7 @@ from the database. See :ref:`unicode-handling` for details.
DATE
DATEARRAY
DATETIMEARRAY
DECIMAL
DECIMALARRAY
FLOAT
FLOATARRAY
@ -511,3 +512,7 @@ from the database. See :ref:`unicode-handling` for details.
UNICODE
UNICODEARRAY
.. versionchanged:: 2.2.0
previously the `DECIMAL` typecaster was not exposed by the
`extensions` module. In older versions it can be imported from the
implementation module `!psycopg2._psycopg`.

View File

@ -33,7 +33,7 @@ This module holds all the extensions to the DBAPI-2.0 provided by psycopg.
# License for more details.
from _psycopg import UNICODE, INTEGER, LONGINTEGER, BOOLEAN, FLOAT
from _psycopg import TIME, DATE, INTERVAL
from _psycopg import TIME, DATE, INTERVAL, DECIMAL
from _psycopg import BINARYARRAY, BOOLEANARRAY, DATEARRAY, DATETIMEARRAY
from _psycopg import DECIMALARRAY, FLOATARRAY, INTEGERARRAY, INTERVALARRAY
from _psycopg import LONGINTEGERARRAY, ROWIDARRAY, STRINGARRAY, TIMEARRAY