Re: Some questions about the array.
От | Tom Lane |
---|---|
Тема | Re: Some questions about the array. |
Дата | |
Msg-id | 12549.1450797031@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Some questions about the array. (Uriy Zhuravlev <u.zhuravlev@postgrespro.ru>) |
Ответы |
Re: Some questions about the array.
Re: Some questions about the array. |
Список | pgsql-hackers |
Uriy Zhuravlev <u.zhuravlev@postgrespro.ru> writes: > On понедельник, 21 декабря 2015 г. 20:28:43 MSK, Tom Lane wrote: >> With is_slice false, the only valid >> case is lidx==NULL, uidx!=NULL, as before for non-slice notation. > But now it becomes valid syntax: > select ('{1,2,3,4}'::int[])[NULL:NULL]; > I do not think it's logical. Especially if in [:] function is used. > Unexpected behavior. I think you are confused about the difference between a NULL constant (which would give rise to an A_Const syntax tree node) and a NULL syntax tree pointer (which cannot arise from any actual syntactical construct, and would only be present if the grammar put it there due to lack of any corresponding item in the input). regards, tom lane
В списке pgsql-hackers по дате отправления: