Re: Error in example

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: glauciobb(at)gmail(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Error in example
Date: 2018-12-19 15:07:51
Message-ID: 10760.1545232071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

=?utf-8?q?PG_Doc_comments_form?= <noreply(at)postgresql(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2018-12-19 19:52:57 Need clarification on how to extract or compare numeric values enclosed in jsonb
Previous Message PG Doc comments form 2018-12-19 12:33:53 Error in example