Re: Polymorphic functions' weird behavior

From: Viatcheslav Kalinin <vka(at)ipcb(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Polymorphic functions' weird behavior
Date: 2007-08-01 12:20:34
Message-ID: 46B07A92.9090002@ipcb.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
>
> You'd have to cast the NULL to some specific array type.
>
> regards, tom lane
Unfortunately I can't do that (well, in fact it would be pretty
inconvenient) because the function is called from other plpgsql function
and I cannot be sure if it will be called with NULL or not. Anyway I
seem to resolved the problem by writing another doing-nothing-at-all
function with the same name and "unknown' argument type.

regards, Viatcheslav

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Downs 2007-08-01 12:22:24 Re: Linux distro
Previous Message Hannes Dorbath 2007-08-01 12:18:26 Re: Linux distro