Re: Avoid mix char with bool type in comparisons

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Avoid mix char with bool type in comparisons
Дата
Msg-id 3027732.1665102083@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Avoid mix char with bool type in comparisons  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: Avoid mix char with bool type in comparisons  (Ranier Vilela <ranier.vf@gmail.com>)
Список pgsql-hackers
Ranier Vilela <ranier.vf@gmail.com> writes:
> My main concerns is this point:
>   /* If already matched on earlier page, do no extra work */
> - if (key->entryRes[j])
> + if (key->entryRes[j] == GIN_TRUE)
>   continue;

> If GIN_MAYBE cases are erroneously ignored.

So, if that's a bug, you should be able to produce a test case?

            regards, tom lane



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

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Re: Avoid mix char with bool type in comparisons
Следующее
От: David Rowley
Дата:
Сообщение: Re: shadow variables - pg15 edition