| От | Brendan Jurd |
|---|---|
| Тема | Domain types versus anyelement |
| Дата | |
| Msg-id | 37ed240d0909022337n77821bb1u318143dd5cc0fac2@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: Domain types versus anyelement
|
| Список | pgsql-general |
I'm getting some surprising behaviour from domain types in 8.3.7.
I have a domain "aud" on numeric(20,2). When I try to use a value of
this type with the built-in greater() function, I get this:
# select greater(1::aud, 0);
ERROR: function greater(aud, integer) does not exist
LINE 1: select greater(1::aud, 0);
^
HINT: No function matches the given name and argument types. You
might need to add explicit type casts.
I see that the argument types for greater() are (anyelement, anyelement).
It seems peculiar at best, that a domain on a perfectly valid
anyelement type is not considered a candidate match for anyelement.
Cheers,
BJ
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера