Re: polymorphic SQL functions has a problem with domains

Поиск
Список
Период
Сортировка
David Johnston <polobo@yahoo.com> writes:
> Does something like:
> SELECT ($1 + $2)::$1%TYPE 
> exist where you can explicitly cast to the type of the input argument?

I don't think SQL-language functions have such a notation, but it's
possible in plpgsql, if memory serves.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: polymorphic SQL functions has a problem with domains
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: polymorphic SQL functions has a problem with domains