Skip site navigation (1) Skip section navigation (2)

Re: "any" to functions and function aliases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Koczan" <pjkoczan(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: "any" to functions and function aliases
Date: 2007-09-08 21:33:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
"Peter Koczan" <pjkoczan(at)gmail(dot)com> writes:
> FUNCTION isnull("any", "any") postgres
> pg_restore: [archiver (db)] could not execute query: ERROR:  plpgsql
> functions cannot return type "any"
>     Command was: CREATE FUNCTION "isnull"("any", "any") RETURNS "any"

Use anyelement instead.

			regards, tom lane

In response to

pgsql-admin by date

Next:From: PGallagherDate: 2007-09-10 15:29:18
Subject: Postmaster Question
Previous:From: Peter KoczanDate: 2007-09-08 21:05:43
Subject: "any" to functions and function aliases

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group