Error in example

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: glauciobb(at)gmail(dot)com
Subject: Error in example
Date: 2018-12-19 12:33:53
Message-ID: 154522283371.15419.15167411691473730460@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/spi-examples.html
Description:

Dear,

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);

They should be as follow:

/ * Convert a text object to a C string * /
command = text_to_cstring (PG_GETARG_TEXT_PP (0));
cnt = PG_GETARG_INT32 (1);

Best regards,
Gláucio

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2018-12-19 15:07:51 Re: Error in example
Previous Message Jürgen Purtz 2018-12-18 15:54:53 Re: First SVG graphic