mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Little cursor fix.
This commit is contained in:
parent
635ab132c0
commit
63698c6c28
|
@ -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>
|
||||
|
||||
* Release 2.0b2.
|
||||
|
|
|
@ -286,7 +286,7 @@ _psyco_curs_execute(cursorObject *self,
|
|||
|
||||
let's go... */
|
||||
|
||||
if (vars)
|
||||
if (vars && vars != Py_None)
|
||||
{
|
||||
if(_mogrify(vars, operation, self->conn, &cvt) == -1) {
|
||||
Py_XDECREF(uoperation);
|
||||
|
|
Loading…
Reference in New Issue
Block a user