| От | Tom Lane |
|---|---|
| Тема | Re: some problem with casting unknown to smallint |
| Дата | |
| Msg-id | 11408.1225284247@sss.pgh.pa.us обсуждение |
| Ответ на | Re: some problem with casting unknown to smallint ("Pavel Stehule" <pavel.stehule@gmail.com>) |
| Ответы |
Re: some problem with casting unknown to smallint
|
| Список | pgsql-hackers |
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> I understand. So every smallint should be call with casting?
A long time ago we tried to make small integer literals be interpreted
as int2 initially, instead of int4, and the attempt failed rather
spectacularly. (It broke most of the regression tests, IIRC, in ways
that suggested that many client applications would have problems too.)
Perhaps PG's type system has matured to the point where it'd work better
now, but I'm not really interested in trying it. I don't see very much
point in declaring functions to take smallint rather than int anyway...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера