Re: Strange DOMAIN behavior
От | Alex Ignatov |
---|---|
Тема | Re: Strange DOMAIN behavior |
Дата | |
Msg-id | 559EAF3B.9070900@postgrespro.ru обсуждение исходный текст |
Ответ на | Re: Strange DOMAIN behavior ("David G. Johnston" <david.g.johnston@gmail.com>) |
Список | pgsql-sql |
On 09.07.2015 19:50, David G. Johnston wrote:
Thats sad =(. But it is not so gracefully to initialize composite type in the begin block as it would be in declare block %).CREATE OR REPLACE FUNCTION lexema_test()DROP FUNCTION lexema_test( );
RETURNS VOID AS $body$
DECLARE
lex lexema :=new_lexema();
BEGIN
END;
$body$
LANGUAGE PLPGSQL
SECURITY DEFINER;
Then I got:
ERROR: default value for row or record variable is not supported
LINE 17: lex lexema :=new_lexema();
Undocumented limitation :(While slightly more verbose you simply need to:DECLARE lex lexema;BEGINlex := new_lexema();[...]David J.
Thank you for yours answers!
-- Alex Ignatov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
![]() | This email has been checked for viruses by Avast antivirus software. |
В списке pgsql-sql по дате отправления: