mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Preparing release 2.0.7.
This commit is contained in:
parent
1fddaa8562
commit
f3438f2961
|
@ -400,7 +400,7 @@ psyco_TimestampFromTicks(PyObject *self, PyObject *args)
|
|||
time_t t;
|
||||
double ticks;
|
||||
|
||||
if (!PyArg_ParseTuple(args,"d", &ticks))
|
||||
if (!PyArg_ParseTuple(args, "d", &ticks))
|
||||
return NULL;
|
||||
|
||||
t = (time_t)round(ticks);
|
||||
|
@ -412,8 +412,10 @@ psyco_TimestampFromTicks(PyObject *self, PyObject *args)
|
|||
(double)tm.tm_sec + ticks,
|
||||
pyPsycopgTzLOCAL);
|
||||
if (value) {
|
||||
/* we don't decref the value here because the call to
|
||||
psyco_Timestamp will do that by calling PyArg_ParseTuple */
|
||||
/* FIXME: not decref'ing the value here is a memory leak
|
||||
but, on the other hand, if we decref we get a clean nice
|
||||
segfault (on my 64 bit Python 2.4 box). So this leaks
|
||||
will stay until after 2.0.7 when we'll try to plug it */
|
||||
res = psyco_Timestamp(self, value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build_ext]
|
||||
define=PSYCOPG_EXTENSIONS,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3,PSYCOPG_DEBUG
|
||||
define=PSYCOPG_EXTENSIONS,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3
|
||||
# PSYCOPG_EXTENSIONS enables extensions to PEP-249 (you really want this)
|
||||
# PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower)
|
||||
# HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.4
|
||||
|
|
Loading…
Reference in New Issue
Block a user