Syntax conflicts in frame clause

Поиск
Список
Период
Сортировка
От Hitoshi Harada
Тема Syntax conflicts in frame clause
Дата
Msg-id e08cc0400911240908s7efaea85wc8505d228220b980@mail.gmail.com
обсуждение исходный текст
Ответы Re: Syntax conflicts in frame clause
Список pgsql-hackers
Rewriting my frame support types patch to allow any expression in
PRECEDING/FOLLOWING clause, I found the syntax below in PG conflicts:

frame_extent: frame_bound { ... }   | BETWEEN frame_bound AND frame_bound { ... }
;
frame_bound: UNBOUNDED PRECEDING { ... }   | UNBOUNDED FOLLOWING { ... }   | CURRENT_P ROW { ... }   | a_expr PRECEDING
{... }   | a_expr FOLLOWING { .... }
 
;

because a_expr (and of course b_expr) contains BETWEEN as
type_func_name_keyword, which means the starting BETWEEN in
frame_extend is completely ambiguous. When I tried to move BETWEEN to
reserved_keyword, it was solved as expected.

In my poor mind there's no way to avoid this situation as long as you
keep BETWEEN as type_func_name_keyword, but could anyone have a
solution for this?

Regards,

-- 
Hitoshi Harada


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Initial refactoring of plperl.c - draft [PATCH]
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [GENERAL] Updating column on row update