| От | Tom Lane |
|---|---|
| Тема | Re: Numeric Datatype |
| Дата | |
| Msg-id | 5504.1022164993@sss.pgh.pa.us обсуждение |
| Ответ на | Numeric Datatype ("Terence Ingram" <terence@socialchange.net.au>) |
| Ответы |
Re: Numeric Datatype
|
| Список | pgsql-bugs |
"Terence Ingram" <terence@socialchange.net.au> writes:
> Why is this so?
Numeric literals too large to fit in an int are interpreted as floats.
You can work around the issue by explicitly coercing the literal to
numeric, or by single-quoting it (so that its type is not determined
until after agency_uid is known to be numeric), or by updating to PG
7.2 which uses a slightly different set of type-resolution rules.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера