Little cursor fix.

This commit is contained in:
Federico Di Gregorio 2005-05-19 01:18:21 +00:00
parent 635ab132c0
commit 63698c6c28
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-05-19 Federico Di Gregorio <fog@debian.org>
* psycopg/cursor_type.c (_psyco_curs_execute): added explict check
to avoid using None as bound variables (very importand for cursor
subclasses calling cursor.execute(self, query, None).
2005-05-18 Federico Di Gregorio <fog@debian.org> 2005-05-18 Federico Di Gregorio <fog@debian.org>
* Release 2.0b2. * Release 2.0b2.

View File

@ -286,7 +286,7 @@ _psyco_curs_execute(cursorObject *self,
let's go... */ let's go... */
if (vars) if (vars && vars != Py_None)
{ {
if(_mogrify(vars, operation, self->conn, &cvt) == -1) { if(_mogrify(vars, operation, self->conn, &cvt) == -1) {
Py_XDECREF(uoperation); Py_XDECREF(uoperation);