summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index 6ea4607..b4ea5cb 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -680,6 +680,10 @@ init_psycopg(void)
#ifdef HAVE_PYDATETIME
pydatetimeType.tp_alloc = PyType_GenericAlloc;
#endif
-
+
+#ifdef HAVE_MXDATETIME
+ mxdatetimeType.tp_alloc = PyType_GenericAlloc;
+#endif
+
Dprintf("initpsycopg: module initialization complete");
}