Procedure calling syntax with complex types

Поиск
Список
Период
Сортировка
От
Тема Procedure calling syntax with complex types
Дата
Msg-id 65036.66.212.203.4.1083807010.squirrel@$HOSTNAME
обсуждение исходный текст
Список pgsql-general
Say I have a type defined as

city (varchar, varchar(2), numeric, numeric)

What would be the syntax for calling a stored procedure defined with this
type as a parameter, i.e., something like

 CREATE FUNCTION public.city_insert(city)
  RETURNS ...

That is, I want to do something like

SELECT public.city_insert(CAST('Waterford', 'CT', 41.346853,-72.14582) AS
city);

but I don't think this syntax works.

--Berend Tober



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CHECK constraints and optimizations
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: error code with psql