Re: All function parameters become NULL if one is?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Joel Burton <jburton(at)scw(dot)org>
Cc: pgsql-general(at)postgreSQL(dot)org, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: All function parameters become NULL if one is?
Date: 2000-09-17 20:37:35
Message-ID: Pine.LNX.4.21.0009171644160.576-100000@peter
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Joel Burton writes:

> I have a function that takes two text parameters. If both of these
> are non-null, everything works fine. However, if one of these two
> parameters is null and one is not, the function receives both as null.

Worse, no matter what the function does, the return value is also null.

> Is this intentional? Is there a way around this?

Wait for 7.1.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Draper 2000-09-17 21:43:31 Re: How do I add a column to an existing table.
Previous Message Alfred Perlstein 2000-09-17 20:19:56 Re: How do I add a column to an existing table.

Browse pgsql-sql by date

  From Date Subject
Next Message Dronamraju Rajesh 2000-09-18 07:53:58 shmget fails for min buffers of postmaster also on solaris 7 .....
Previous Message Tom Lane 2000-09-17 18:16:23 Re: Does optimizer know about 'constant' expressions?