mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-14 21:16:34 +03:00
Don't ignore silently the cursor.callproc
argument without a length
This commit is contained in:
parent
d066537efe
commit
5ebf6744ef
6
NEWS
6
NEWS
|
@ -1,6 +1,12 @@
|
||||||
Current release
|
Current release
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
What's new in psycopg 2.5.4
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
- Don't ignore silently the `cursor.callproc` argument without a length.
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.5.3
|
What's new in psycopg 2.5.3
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
|
@ -1032,8 +1032,7 @@ psyco_curs_callproc(cursorObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parameters != Py_None) {
|
if (parameters != Py_None) {
|
||||||
nparameters = PyObject_Length(parameters);
|
if (-1 == (nparameters = PyObject_Length(parameters))) { goto exit; }
|
||||||
if (nparameters < 0) nparameters = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* allocate some memory, build the SQL and create a PyString from it */
|
/* allocate some memory, build the SQL and create a PyString from it */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user