Broken example in PL/PgSQL documentation

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Broken example in PL/PgSQL documentation
Дата
Msg-id 540855D0.4020108@joh.to
обсуждение исходный текст
Ответы Re: Broken example in PL/PgSQL documentation
Список pgsql-docs
Hi,

Just came across a broken example in the docs:

local:marko=#* select * from extended_sales(1);
ERROR:  column reference "quantity" is ambiguous
LINE 1: SELECT quantity, quantity * price FROM sales
                ^
DETAIL:  It could refer to either a PL/pgSQL variable or a table column.
QUERY:  SELECT quantity, quantity * price FROM sales
                  WHERE itemno = p_itemno
CONTEXT:  PL/pgSQL function "extended_sales" line 3 at RETURN QUERY

Patch to fix this attached.


.marko

Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Missing docs: setting up replication slots for standbys
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Missing docs: setting up replication slots for standbys