From bde9fc6dea578891c7bf2a6f5a7ecdc98978f642 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 27 Dec 2018 14:40:08 +0100 Subject: [PATCH] Docs wordsmith for execute_values() fetch param --- doc/src/extras.rst | 2 +- lib/extras.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/src/extras.rst b/doc/src/extras.rst index 9d85265a..d7600bbf 100644 --- a/doc/src/extras.rst +++ b/doc/src/extras.rst @@ -1024,7 +1024,7 @@ parameters. By reducing the number of server roundtrips the performance can be .. versionadded:: 2.7 .. versionchanged:: 2.8 - added the *fetch* parameter + added the *fetch* parameter. .. index:: diff --git a/lib/extras.py b/lib/extras.py index 2785ea71..76bea85b 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -1229,8 +1229,9 @@ def execute_values(cur, sql, argslist, template=None, page_size=100, fetch=False statement. If there are more items the function will execute more than one statement. - :param fetch: flag indicating that results of query execution should - be returned. Useful for queries with `RETURNING` clause + :param fetch: if `!True` return the query results into a list (like in a + `~cursor.fetchall()`). Useful for queries with :sql:`RETURNING` + clause. .. __: https://www.postgresql.org/docs/current/static/queries-values.html