Add note about cursor.callproc() and PostgreSQL procedures

Close #1155
This commit is contained in:
Daniele Varrazzo 2021-05-20 14:13:00 +02:00
parent 7479e6b31e
commit 263ace6657

View File

@ -232,6 +232,16 @@ The ``cursor`` class
.. versionchanged:: 2.7 .. versionchanged:: 2.7
added support for named arguments. added support for named arguments.
.. note::
`!callproc()` can only be used with PostgreSQL functions__, not
with the procedures__ introduced in PostgreSQL 11, which require
the :sql:`CALL` statement to run. Please use a normal
`execute()` to run them.
.. __: https://www.postgresql.org/docs/current/sql-createfunction.html
.. __: https://www.postgresql.org/docs/current/sql-createprocedure.html
.. method:: mogrify(operation [, parameters]) .. method:: mogrify(operation [, parameters])
Return a query string after arguments binding. The string returned is Return a query string after arguments binding. The string returned is