diff --git a/ChangeLog b/ChangeLog index 2401c53a..c688507e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-05-09 Federico Di Gregorio + * Release 2.0 beta 1. + * psycopg/typecast_datetime.c (typecast_PYDATETIME_cast): fixed a typo (pyDateTimeModuleP->pyDateTimeTypeP) that was causing errors with infinite datetime values. diff --git a/NEWS b/NEWS index 69086243..8bf7e3a4 100644 --- a/NEWS +++ b/NEWS @@ -14,7 +14,7 @@ What's new in psycopg 2.0 beta 1 * Added error codes to error messages. * The AsIs adapter is now exported by default (also Decimal objects are - adapter using the AsIs adapter (when str() is called on them they + adapted using the AsIs adapter (when str() is called on them they already format themselves using the right precision and scale.) * The connect() function now takes "connection_factory" instead of diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c index 1c3966a4..89d64a45 100644 --- a/psycopg/psycopgmodule.c +++ b/psycopg/psycopgmodule.c @@ -223,6 +223,10 @@ psyco_adapters_init(PyObject *mod) #ifdef HAVE_PYBOOL microprotocols_add(&PyBool_Type, NULL, (PyObject*)&pbooleanType); #endif + +#ifdef HAVE_DECIMAL + microprotocols_add((PyTypeObject*)decimalType, NULL, (PyObject*)&asisType); +#endif } /* psyco_encodings_fill diff --git a/setup.py b/setup.py index 6a11c1a6..928d773d 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ from distutils.errors import DistutilsFileError from distutils.command.build_ext import build_ext from distutils.sysconfig import get_python_inc -PSYCOPG_VERSION = '1.99.13' +PSYCOPG_VERSION = '2.0b1' version_flags = [] # to work around older distutil limitations