Re: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool
Дата
Msg-id 31620.1408161150@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool  (David G Johnston <david.g.johnston@gmail.com>)
Ответы Re: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
David G Johnston <david.g.johnston@gmail.com> writes:
> cpronovost wrote
>> When using the <@ operator in conjunction with the NOT operator on a jsonb
>> column, the NOT reverse the <@ operator(becomes a @>).

> The presence of "NOT" does not (aside from a possible bug) change the "<@"
> operator into the "@>" operator.  "NOT" simply inverts the supplied boolean
> value so that "not(true) := false" and vice-versa.

That's what it's *supposed* to do, but somebody got the pg_operator entry
wrong.  It looks to me like pg_operator OIDs 3246 and 3250 should be
listed as each others' commutators, not each others' negators.

Sigh.  So much for no initdb for 9.4beta3.  I wonder whether there are
other thinkos in the jsonb operator entries...

            regards, tom lane

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

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: BUG #11178: JSONB : The NOT operator applies to the <@ operator, even after casting to ::bool