summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--NEWS2
-rw-r--r--psycopg/psycopgmodule.c4
-rw-r--r--setup.py2
4 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2401c53..c688507 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/NEWS b/NEWS
index 6908624..8bf7e3a 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 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
diff --git a/setup.py b/setup.py
index 6a11c1a..928d773 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