| От | Tom Lane |
|---|---|
| Тема | Re: ECPG patch causes warning |
| Дата | |
| Msg-id | 4851.1263142079@sss.pgh.pa.us обсуждение |
| Ответ на | Re: ECPG patch causes warning (Boszormenyi Zoltan <zb@cybertec.at>) |
| Ответы |
Re: ECPG patch causes warning
|
| Список | pgsql-hackers |
Boszormenyi Zoltan <zb@cybertec.at> writes:
> Tom Lane �rta:
>> I think that the compiler has caught an actual mistake here.
> Yes, it's a mistake, but not an actual bug.
> The intent was to be able to catch unhandled
> cases in the application, just as in ecpg_dynamic_type().
> The fix for sqlda_dynamic_type() is to use the same cast:
> return -(int) type;
> Should I send a patch for this?
You should send a patch to *get rid of it*. Putting in a cast only
hides the fact that this logic will break on OIDs above 2G.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера