Received: from tangent.ics.olemiss.edu (IDENT:root@tangent.ics.olemiss.edu [130.74.31.3]) by hub.org (8.10.1/8.10.1) with ESMTP id e7FISWn95163 for ; Tue, 15 Aug 2000 14:28:32 -0400 (EDT) Received: from Betelgeuse.ics.olemiss.edu (wsp000771wss.ics.olemiss.edu [130.74.31.251]) by tangent.ics.olemiss.edu (8.9.3/8.8.7) with ESMTP id NAA20468; Tue, 15 Aug 2000 13:28:30 -0500 Message-Id: <5.0.0.11.2.20000815132808.01ef3c78@tangent.ics.olemiss.edu> X-Sender: tswan-lst@tangent.ics.olemiss.edu (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0.0.11 (Beta) Date: Tue, 15 Aug 2000 13:28:29 -0500 To: "DalTech - CTE" From: Thomas Swan Subject: Re: Functions with Null Arguments? Cc: pgsql-sql@postgresql.org In-Reply-To: <012c01c006e6$19287360$5911be86@cte.Dal.Ca> References: <5.0.0.11.2.20000815010809.01e52570@sunset.backbone.olemiss.edu> <5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_41181906==_.ALT" X-Archive-Number: 200008/133 --=====================_41181906==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed At 01:24 PM 8/15/2000, DalTech - CTE wrote: >Known bug in some versions. I believe it was fixed in v7.x, though. > >Cheers.... >----- Original Message ----- >From: Thomas Swan >To: DalTech - CTE ; Thomas Swan >Cc: Pgsql-sql >Sent: Tuesday, August 15, 2000 1:43 PM >Subject: Re: [SQL] Functions with Null Arguments? > >At 10:12 AM 8/15/2000, DalTech - CTE wrote: >>I would try using COALESCE(list) which will return the first non-NULL in >>the list. >That worked! Thanks! > >The second part is why does postgresql not evaluate the function if one of >the arguments is null? I'm using version 7.0.2 (x86 Linux) --=====================_41181906==_.ALT Content-Type: text/html; charset="us-ascii" At 01:24 PM 8/15/2000, DalTech - CTE wrote:
Known bug in some versions.  I believe it was fixed in v7.x, though.
 
Cheers....
----- Original Message -----
From: Thomas Swan
To: DalTech - CTE ; Thomas Swan
Cc: Pgsql-sql
Sent: Tuesday, August 15, 2000 1:43 PM
Subject: Re: [SQL] Functions with Null Arguments?

At 10:12 AM 8/15/2000, DalTech - CTE wrote:
I would try using COALESCE(list) which will return the first non-NULL in the list.
That worked! Thanks!

The second part is why does postgresql not evaluate the function if one of the arguments is null?

I'm using version 7.0.2 (x86 Linux) --=====================_41181906==_.ALT--