From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: select null + 0 question |
Date: | 2003-07-14 19:58:07 |
Message-ID: | 87u19olw34.fsf@stark.dyndns.tv |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Joe Conway <mail(at)joeconway(dot)com> writes:
> Jean-Christian Imbeault wrote:
> > Shouldn't the sum() and "+" operators behave the same?
>
> No, see SQL99, Section 6.16, General Rules 1.b:
>
> "Otherwise, let TX be the single-column table that is the result of applying
> the <value expression> to each row of T and eliminating null values. If one or
> more null values are eliminated, then a completion condition is raised: warning
> null value eliminated in set function."
>
> I've never seen a database that emits the required warning, though.
Oracle 8i began doing this. How it's handled is up to your driver, I know
DBD::Oracle changed several times and at least for a while treated it as an
error. I'm not sure what the current state on that is.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Ben | 2003-07-14 20:12:34 | automated way to test plpgsql functions? |
Previous Message | Ian Barwick | 2003-07-14 19:01:15 | Re: migrating data from 7.3.x down to 7.2.x |