mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-04 08:05:45 +03:00
Mark psyco_set_error as returning a borrowed object
This commit is contained in:
parent
7a1fb9a2e4
commit
3768d9047d
|
@ -365,8 +365,7 @@ exit:
|
||||||
* Create a new error of the given type with extra attributes.
|
* Create a new error of the given type with extra attributes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* TODO: may have been changed to BORROWED */
|
RAISES BORROWED PyObject *
|
||||||
RAISES PyObject *
|
|
||||||
psyco_set_error(PyObject *exc, cursorObject *curs, const char *msg)
|
psyco_set_error(PyObject *exc, cursorObject *curs, const char *msg)
|
||||||
{
|
{
|
||||||
PyObject *pymsg;
|
PyObject *pymsg;
|
||||||
|
|
|
@ -53,7 +53,7 @@ HIDDEN PyObject *psycopg_make_dsn(PyObject *dsn, PyObject *kwargs);
|
||||||
HIDDEN PyObject *psycopg_text_from_chars_safe(
|
HIDDEN PyObject *psycopg_text_from_chars_safe(
|
||||||
const char *str, Py_ssize_t len, PyObject *decoder);
|
const char *str, Py_ssize_t len, PyObject *decoder);
|
||||||
|
|
||||||
RAISES HIDDEN PyObject *psyco_set_error(
|
HIDDEN RAISES BORROWED PyObject *psyco_set_error(
|
||||||
PyObject *exc, cursorObject *curs, const char *msg);
|
PyObject *exc, cursorObject *curs, const char *msg);
|
||||||
|
|
||||||
HIDDEN PyObject *psyco_GetDecimalType(void);
|
HIDDEN PyObject *psyco_GetDecimalType(void);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user