Re: BUG #6154: wrong result with nested left-joins

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6154: wrong result with nested left-joins
Дата
Msg-id 5932.1312865600@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6154: wrong result with nested left-joins  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #6154: wrong result with nested left-joins  ("ai" <listar@mail.ru>)
Список pgsql-bugs
I wrote:
> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
>> "ai" <listar@mail.ru> wrote:
>>> Oops.. I just saw, that I send you "correct" (already with "workaround")
>>> sql-code instead of "wrong"...
>>> here is "wrong" (difference is in "SELECT sub3.key3, sub4.value2
>>> FROM" ):

>> OK, that is still happening, and looks wrong to me.

> Yeah, I see it too.  It seems to be evaluating the placeholder for the
> COALESCE expression at the wrong join level.  Not sure why, yet.

Found it --- the code only fails for the case where the COALESCE
subexpression is referenced in the upper targetlist, but not the quals
(ie, not ON or WHERE).  Patch committed, thanks for the report!

            regards, tom lane

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

Предыдущее
От: "listar"
Дата:
Сообщение: BUG #6155: literal definition of arrays with double qoutes leads to error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6155: literal definition of arrays with double qoutes leads to error