diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-26 03:39:28 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-26 03:39:28 +0100 |
commit | d13521a6ce1f92956dcca2b68e4e703008580c7b (patch) | |
tree | c415a6215adce09b835ad1726cad37626dc18505 | |
parent | 1957389bea86a525f1d70e9935fb7d3522a94f3e (diff) | |
download | psycopg2-d13521a6ce1f92956dcca2b68e4e703008580c7b.tar.gz |
Mention named callproc in news, fixed docs.
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | doc/src/cursor.rst | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -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 974e1a2..aee6b46 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]) |