| От | Tom Lane |
|---|---|
| Тема | Re: Casting numeric values to double |
| Дата | |
| Msg-id | 22047.1128349858@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Casting numeric values to double ("Daniel Schregenberger" <npfdd@gmx.net>) |
| Список | pgsql-general |
"Daniel Schregenberger" <npfdd@gmx.net> writes:
> If I compare a field of type "numeric" to a small decimal constant like
> "3.6", the constant is interpreted as a "double precision" value and the
> comparison fails with the following message:
> # SELECT * FROM tr_table_okpx WHERE prating >= 3.6;
> Unable to identify an operator '>=' for types 'double precision' and
> 'numeric'
> You will have to retype this query using an explicit cast
> I'm using Postgre 7.2, which might be a bit outdated but I could not find
> any information whether this behaviour has changed in newer versions.
More than "a bit" outdated, and yes it has.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера