mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-27 03:13:43 +03:00
Hopefully really fixed crash in datetime adapter.
Verified with gcc 4.3. Notice that on gcc 4.4 the bug was not present.
This commit is contained in:
parent
153c30f24b
commit
a2dcf504b5
|
@ -387,7 +387,7 @@ psyco_Timestamp(PyObject *self, PyObject *args)
|
||||||
int hour=0, minute=0; /* default to midnight */
|
int hour=0, minute=0; /* default to midnight */
|
||||||
double second=0.0;
|
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))
|
&hour, &minute, &second, &tzinfo))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user