SQL function and composite types

Поиск
Список
Период
Сортировка
От Ron Sofrin
Тема SQL function and composite types
Дата
Msg-id 94qdsf$7gr$1@news.tht.net
обсуждение исходный текст
Список pgsql-sql
Hi all,

having this simple table:

create table foo (attribute text);

and this simple function:

create function f()
returns foo
as'   select  ' 'test' '::text'
langauge 'sql' ;

When I execute (though psql) select f();

I get the following result

f
----------------
136411800

instead  of the expected:

f
-----------------
test



Any ideas?




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

Предыдущее
От: juerg.rietmann@pup.ch
Дата:
Сообщение: how to query this ??
Следующее
От: "David J. R. Brook"
Дата:
Сообщение: