Re: gram.y comment issue

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: gram.y comment issue
Дата
Msg-id CA+HiwqE=_VkCvzUATY5GUTwiBFbXRpQzKLg4yjGm7Hn1=c4Wyg@mail.gmail.com
обсуждение исходный текст
Ответ на gram.y comment issue  (张文升 <wensheng.zhang@qunar.com>)
Ответы Re: gram.y comment issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Wed, Mar 9, 2016 at 3:04 PM, =E5=BC=A0=E6=96=87=E5=8D=87 <wensheng.zhang=
@qunar.com> wrote:
> The gram.y  includes the line(line:1965):
> /* ALTER TABLE <name> ALTER [COLUMN] <colname> SET ( column_parameter =3D
> value [, ... ] ) */
> ALTER opt_column ColId RESET reloptions
>
> The comment has the word "SET", but I think that's should be "RESET".

This one needs to be fixed.

> src/include/nodes/parsenodes.h line:141
> List      *distinctClause; /* a list of SortGroupClause's */
> The comment has the word "SortGroupClause", but that's should be
> "distinctClause".

This one is fine.  The name distinctClause here is parser's way of
referring to the SQL construct DISTINCT ON (<list-of-items>) in a
SELECT query, where each member of the list is a SortGroupClause item.

Thanks,
Amit

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

Предыдущее
От: 张文升
Дата:
Сообщение: gram.y comment issue
Следующее
От: Tom Lane
Дата:
Сообщение: Re: gram.y comment issue