From d13521a6ce1f92956dcca2b68e4e703008580c7b Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 26 Dec 2016 03:39:28 +0100 Subject: [PATCH] Mention named callproc in news, fixed docs. --- NEWS | 1 + doc/src/cursor.rst | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 67883d74..6ffa66a9 100644 --- a/NEWS +++ b/NEWS @@ -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: diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst index 974e1a2b..aee6b465 100644 --- a/doc/src/cursor.rst +++ b/doc/src/cursor.rst @@ -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])