pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Swan <tswan-lst@tangent.ics.olemiss.edu>
To: DalTech - CTE <CTE@Dal.Ca>
To: Thomas Swan <tswan@olemiss.edu>
Cc: Pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Functions with Null Arguments?
Date: Tue, 15 Aug 2000 11:43:51 -0500
Message-ID: <5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu> (raw)
In-Reply-To: <008601c006b2$26763400$5911be86@cte.Dal.Ca>
References: <5.0.0.11.2.20000815010809.01e52570@sunset.backbone.olemiss.edu>

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?

view thread (5+ messages)  latest in thread

Message-ID: <5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu>
Permalink:  ../5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu/
Also on:    postgresql.org/message-id/5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tswan-lst@tangent.ics.olemiss.edu, CTE@Dal.Ca, tswan@olemiss.edu
  Subject: Re: Functions with Null Arguments?
  In-Reply-To: <5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu>
  References: <5.0.0.11.2.20000815010809.01e52570@sunset.backbone.olemiss.edu> <5.0.0.11.2.20000815114308.020f6e40@tangent.ics.olemiss.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox