View Single Post

   
  #7 (permalink)  
Old 04-15-2008, 11:42 PM
Pavel Stehule
 
Posts: n/a
Default Re: proposal: generic function, constructor function

On 19/01/2008, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
> > But I am not able create function with
> > ANY params. Is it possible do it via CREATE FUNCTION .. ?

>
> It's a reserved word :-(. Try "any"
>
> regards, tom lane
>


I did it
postgres=# create or replace function fx1(any, any) returns text
language C strict;
ERROR: syntax error at or near "any"
LINE 1: create or replace function fx1(any, any) returns text langua...
^
postgres=#

do you have any sample, please,

thank you
Pavel

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Reply With Quote