mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +03:00
Flag a few other functions returning borrowed refs
This commit is contained in:
parent
4ecfd48671
commit
0ee641361b
|
@ -550,6 +550,7 @@ psyco_conn_autocommit_get(connectionObject *self)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CPYCHECKER_RETURNS_BORROWED_REF
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_psyco_conn_autocommit_set_checks(connectionObject *self)
|
_psyco_conn_autocommit_set_checks(connectionObject *self)
|
||||||
{
|
{
|
||||||
|
|
|
@ -85,6 +85,7 @@ struct cursorObject {
|
||||||
|
|
||||||
|
|
||||||
/* C-callable functions in cursor_int.c and cursor_ext.c */
|
/* C-callable functions in cursor_int.c and cursor_ext.c */
|
||||||
|
CPYCHECKER_RETURNS_BORROWED_REF
|
||||||
HIDDEN PyObject *curs_get_cast(cursorObject *self, PyObject *oid);
|
HIDDEN PyObject *curs_get_cast(cursorObject *self, PyObject *oid);
|
||||||
HIDDEN void curs_reset(cursorObject *self);
|
HIDDEN void curs_reset(cursorObject *self);
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
* Return a borrowed reference.
|
* Return a borrowed reference.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
CPYCHECKER_RETURNS_BORROWED_REF
|
||||||
PyObject *
|
PyObject *
|
||||||
curs_get_cast(cursorObject *self, PyObject *oid)
|
curs_get_cast(cursorObject *self, PyObject *oid)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user