diff --git a/ChangeLog b/ChangeLog index 20af4407..11c7964c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-04-13 Daniele Varrazzo + + * lib/extensions.py: DECIMAL typecaster imported from _psycopg. + 2010-04-05 Federico Di Gregorio * Fixed problem with asynchronous NOTIFYs. diff --git a/doc/src/extensions.rst b/doc/src/extensions.rst index a672781c..7a02e4df 100644 --- a/doc/src/extensions.rst +++ b/doc/src/extensions.rst @@ -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`. diff --git a/lib/extensions.py b/lib/extensions.py index edffee9c..4627d088 100644 --- a/lib/extensions.py +++ b/lib/extensions.py @@ -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