Mention named callproc in news, fixed docs.

This commit is contained in:
Daniele Varrazzo 2016-12-26 03:39:28 +01:00
parent 1957389bea
commit d13521a6ce
2 changed files with 4 additions and 2 deletions

1
NEWS
View File

@ -24,6 +24,7 @@ New features:
adapter is deprecated (:tickets:`#317, #343, #387`).
- Added `~psycopg2.extensions.quote_ident()` function (:ticket:`#359`).
- Added `~connection.get_dsn_parameters()` connection method (:ticket:`#364`).
- `~cursor.callproc()` now accepts a dictionary of parameters (:ticket:`#381`).
Other changes:

View File

@ -202,8 +202,7 @@ The ``cursor`` class
Call a stored database procedure with the given name. The sequence of
parameters must contain one entry for each argument that the procedure
expects. Overloaded procedures are supported. Named parameters can be
used with a PostgreSQL 9.0+ client by supplying the sequence of
parameters as a Dict.
used by supplying the parameters as a dictionary.
This function is, at present, not DBAPI-compliant. The return value is
supposed to consist of the sequence of parameters with modified output
@ -213,6 +212,8 @@ The ``cursor`` class
The procedure may provide a result set as output. This is then made
available through the standard |fetch*|_ methods.
.. versionchanged:: 2.7
added support for named arguments.
.. method:: mogrify(operation [, parameters])