Re: Let us fix the documentation

Поиск
Список
Период
Сортировка
От Erikjan Rijkers
Тема Re: Let us fix the documentation
Дата
Msg-id 8c867e0fb0eb0cad64e10833b8e8c6fb.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответ на Let us fix the documentation  (AK <alkuzo@gmail.com>)
Ответы Re: Let us fix the documentation
Список 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)





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

Предыдущее
От: AK
Дата:
Сообщение: Let us fix the documentation
Следующее
От: Andres Freund
Дата:
Сообщение: Re: preserving forensic information when we freeze