Re: Error in example

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error in example
Дата
Msg-id 10760.1545232071@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Error in example  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
=?utf-8?q?PG_Doc_comments_form?= <noreply@postgresql.org> writes:
> In the example of how to use SPI in the following link
> https://www.postgresql.org/docs/10/spi-examples.html
> The parameters numbers in the follow lines are wrong. 
>     / * Convert a text object to a C string * /
>     command = text_to_cstring (PG_GETARG_TEXT_PP (1));
>     cnt = PG_GETARG_INT32 (2);

You're right.  Will fix, thanks for the report!

            regards, tom lane


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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Error in example
Следующее
От: PG Doc comments form
Дата:
Сообщение: Need clarification on how to extract or compare numeric valuesenclosed in jsonb