Re: BUG #2839: after record with NULL field, query result is wrong

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2839: after record with NULL field, query result is wrong
Дата
Msg-id 27183.1167161321@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2839: after record with NULL field, query result is wrong  ("Vladimir" <dvs@fon.kamchatka.ru>)
Список pgsql-bugs
"Vladimir" <dvs@fon.kamchatka.ru> writes:
> create table tst (a int[]);
> insert into tst values ('{1}'); -- (1)
> insert into tst values (null);
> insert into tst values ('{2}'); -- (3)
> select z.a from tst z where exists (select 1 from
> (
> select generate_series(1,1) as s,* from (select z.a as arr0) qq
> ) q
> where (q.arr0[q.s] is null)  );

Hmm, surprising this hasn't been found before, because the underlying
bug has been around for a long time :-(.  Fix committed --- thanks for
the report!

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2836: SPI_execute_plan failed on pl/pgsql function that worked on 8.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: server process exited with exit code -1073741819 on 8.2 Windows