Обсуждение: Keyword table constness in jsonpath scanner.

Поиск
Список
Период
Сортировка

Keyword table constness in jsonpath scanner.

От
Mark G
Дата:
Hello all,

While looking over the new jsonpath stuff I noticed the keyword table
wasn't declared const. Shouldn't the table and the actual keyword
strings both be declared const? Perhaps something like the attached
(untested) patch.

-Mark

Вложения

Re: Keyword table constness in jsonpath scanner.

От
Alexander Korotkov
Дата:
On Sat, Mar 16, 2019 at 10:47 PM Mark G <markg735@gmail.com> wrote:
> While looking over the new jsonpath stuff I noticed the keyword table
> wasn't declared const. Shouldn't the table and the actual keyword
> strings both be declared const? Perhaps something like the attached
> (untested) patch.

Looks good to me.  Pushed, thanks.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company