| От | Tom Lane |
|---|---|
| Тема | Re: Rejection of the smallest int8 |
| Дата | |
| Msg-id | 19439.1006365271@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Rejection of the smallest int8 (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Rejection of the smallest int8
|
| Список | pgsql-patches |
I said:
> If you can see a way around that, we're all ears ...
Of course there's always the brute-force solution:
if (strcmp(ptr, "-9223372036854775808") == 0)
return -9223372036854775808;
else
<<proceed with int8in>>
(modulo some #ifdef hacking to attach the correct L or LL suffix to the
constant, but you get the idea)
This qualifies as pretty durn ugly, but might indeed be more portable
than any other alternative. Comments?
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера