Re: Let us fix the documentation

From: "Erikjan Rijkers" <er(at)xs4all(dot)nl>
To: "AK" <alkuzo(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Let us fix the documentation
Date: 2013-12-11 21:59:48
Message-ID: 8c867e0fb0eb0cad64e10833b8e8c6fb.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, December 11, 2013 22:51, AK wrote:
> The following url seems to be slightly incorrect:
>
> http://www.postgresql.org/docs/9.3/static/sql-prepare.html
>
> PREPARE usrrptplan (int) AS
> SELECT * FROM users u, logs l WHERE u.usrid=$1 AND u.usrid=l.usrid
> AND l.date = $2;
> EXECUTE usrrptplan(1, current_date);
>
> I guess the first line of the example should be:
>
> PREPARE usrrptplan (int, date) AS
>
> What do you think?
>

read the next line:

"Note that the data type of the second parameter is not specified, so it is inferred from the context in which $2 is used."

(So the example is correct as is)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2013-12-11 22:01:04 Re: preserving forensic information when we freeze
Previous Message AK 2013-12-11 21:51:38 Let us fix the documentation