Re: Warnings around booleans

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Warnings around booleans
Дата
Msg-id 20150812194528.GA21836@awork2.anarazel.de
обсуждение исходный текст
Ответ на Warnings around booleans  (Andres Freund <andres@anarazel.de>)
Ответы Re: Warnings around booleans  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Hi Michael,

I'm currently investigating some of our code cleanliness issues around
booleans. Turns out that ecpg fails if C99's _Bool is used as bool
instead of typedef char bool.

Playing around a bit lead to to find that this is caused by a wrong type
declaration in two places. 'isarray' is declared as bool instead of enum
ARRAY_TYPE in two places. This appears to be an oversight, perhaps
caused by the boolean sounding name.

Does this look right to you? If so, will you apply it?

- Andres

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Close some holes in BRIN page assignment
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: WIP: SCRAM authentication