Обсуждение: [DOCS] INSERT/UPDATE/DELETE with RETURNING

Поиск
Список
Период
Сортировка

[DOCS] INSERT/UPDATE/DELETE with RETURNING

От
sergey.klimkevich@gmail.com
Дата:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/plpgsql-statements.html
Description:


Following statement on
https://www.postgresql.org/docs/9.6/static/plpgsql-statements.html page is
not entirely correct:

"For INSERT/UPDATE/DELETE with RETURNING, PL/pgSQL reports an error for more
than one returned row, even when STRICT is not specified."

This is only true for RETURNING with INTO clause. If INTO clause is omitted
while using RETURNING then the above statement is incorrect and must mention
the presence of INTO clause to be correct.