summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-01 02:00:47 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-01 02:00:47 +0000
commita2dcf504b59bde5a7ffe0eefa875f24fe5602d0f (patch)
tree8082f25a91b1c06ced7ad420868c75dcbafb2de0
parent153c30f24bca8d3c8fda9ed8bc7dbdb9591f58b9 (diff)
downloadpsycopg2-a2dcf504b59bde5a7ffe0eefa875f24fe5602d0f.tar.gz
Hopefully really fixed crash in datetime adapter.
Verified with gcc 4.3. Notice that on gcc 4.4 the bug was not present.
-rw-r--r--psycopg/adapter_datetime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/adapter_datetime.c b/psycopg/adapter_datetime.c
index 0ceb703..fe7acc8 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;