Create table in functions

Поиск
Список
Период
Сортировка
От Andreas Tille
Тема Create table in functions
Дата
Msg-id Pine.LNX.4.21.0008231647290.22247-100000@wr-linux02.rki.de
обсуждение исходный текст
Ответы Re: Create table in functions
Список pgsql-sql
Hello,

I striped down my function up to a strange thing:

web=# create function pHelpTable( )
web-#   returns int
web-#   As '
web'#     Begin
web'#       Create Table Temp_NumTable  ( Num int ) ;
web'#   
web'#       return 17 ;
web'#     End; '
web-#   language 'plpgsql' ;
CREATE
web=# 
web=# select pHelpTable( );
ERROR:  copyObject: don't know how to copy 611
web=# 


What does this mean?  The ERROR is caused by the Create Table statement
(when I removed it from my complex function it worked well).
So why doesn't this work and what copy function fails here??

Kind regards
         Andreas.



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

Предыдущее
От: "Adam Lang"
Дата:
Сообщение: Re: Copy To - fixed width
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Create table in functions