Re: FOR PORTION OF gram.y target_location seems wrong

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: FOR PORTION OF gram.y target_location seems wrong
Дата
Msg-id cd10c5b9-3690-44b2-a505-3cb833ac31cd@eisentraut.org
обсуждение
Ответ на FOR PORTION OF gram.y target_location seems wrong  (jian he <jian.universality@gmail.com>)
Список pgsql-hackers
On 24.04.26 03:10, jian he wrote:
> Hi.
> 
> | FOR PORTION OF ColId FROM a_expr TO a_expr
>      {
>          ForPortionOfClause *n = makeNode(ForPortionOfClause);
>          n->range_name = $4;
>          n->location = @4;
>          n->target_start = $6;
>          n->target_end = $8;
>          n->target_location = @5;
>          $$ = (Node *) n;
>      }
> 
> n->target_location = @5;
> 
> Should be
> 
> n->target_location = @6;

I think the existing code is fine.  The target consists of the start and 
the end value.  If we pointed to @6 then one could be confused into 
thinking that only the start value is meant.




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