PATCH: CreateComments: use explicit indexing for ``values''

Поиск
Список
Период
Сортировка
От richhguard-monotone@yahoo.co.uk
Тема PATCH: CreateComments: use explicit indexing for ``values''
Дата
Msg-id 183252.96819.qm@web86702.mail.ird.yahoo.com
обсуждение исходный текст
Ответы Re: PATCH: CreateComments: use explicit indexing for ``values''  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hello,
I'm new to PostgreSQL and git, but having read through the wiki entries such as
http://wiki.postgresql.org/wiki/Submitting_a_Patch,I think I have a patch worthy of submission. 

It's a readability improvement in src/backend/commands/comment.c (CreateComments function), which changes the existing
codefrom incrementing a variable for use as the array index, to use explicit ``values'' instead. 

This has the following benefits

1) The structure of ``values'' is now clear at first glance.
2) ``i'' is then only used for 1 reason; the for loop

The patch is based on "master", and all existing tests pass.

Regards
Richard
Вложения

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

Предыдущее
От: "Stephen J. Butler"
Дата:
Сообщение: Re: Boolean operators without commutators vs. ALL/ANY
Следующее
От: Florian Pflug
Дата:
Сообщение: Re: Boolean operators without commutators vs. ALL/ANY