| От | Peter Eisentraut |
|---|---|
| Тема | Re: Weird type selection choice |
| Дата | |
| Msg-id | 200711061650.09188.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Weird type selection choice (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
Am Dienstag, 6. November 2007 schrieb Peter Eisentraut: > I noticed this problem in 8.2 and 8.3: > > pei=# select mod( trunc( 1 ), 2 ); > ERROR: 42883: function mod(double precision, integer) does not exist > LINE 1: select mod( trunc( 1 ), 2 ); > ^ > > It apparently casts the 1 to double precision to pick the variant > trunc(dp)=>dp instead of trunc(numeric)=>numeric. I was under the > impression that we didn't want to cast integers to float types implicitly > because this loses information. Well, duh, of course we can't disallow casting integer to float. But can we make it prefer numeric as a target if available? -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера