From a2dcf504b59bde5a7ffe0eefa875f24fe5602d0f Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 1 Feb 2011 02:00:47 +0000 Subject: [PATCH] Hopefully really fixed crash in datetime adapter. Verified with gcc 4.3. Notice that on gcc 4.4 the bug was not present. --- psycopg/adapter_datetime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/adapter_datetime.c b/psycopg/adapter_datetime.c index 0ceb7033..fe7acc8e 100644 --- a/psycopg/adapter_datetime.c +++ b/psycopg/adapter_datetime.c @@ -387,7 +387,7 @@ psyco_Timestamp(PyObject *self, PyObject *args) int hour=0, minute=0; /* default to midnight */ double second=0.0; - if (!PyArg_ParseTuple(args, "lii|iidO", &year, &month, &day, + if (!PyArg_ParseTuple(args, "iii|iidO", &year, &month, &day, &hour, &minute, &second, &tzinfo)) return NULL;