diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | psycopg/psycopgmodule.c | 4 | ||||
-rw-r--r-- | setup.py | 2 |
4 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,7 @@ 2005-05-09 Federico Di Gregorio <fog@debian.org> + * 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. @@ -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 1c3966a..89d64a4 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 @@ -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 |