Re: ORDER BY col is NULL in UNION causes error? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: ORDER BY col is NULL in UNION causes error?
Date
Msg-id 200701112032.l0BKWBU00745@momjian.us
Whole thread Raw
In response to Re: ORDER BY col is NULL in UNION causes error?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ORDER BY col is NULL in UNION causes error?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Updated wording:
>
> >  test=> select * from test union select * from test order by x is null;
> >  ERROR:  A UNION/INTERSECT/EXCEPT ORDER BY cannot use expressions or functions, only result column names
>
> This does not meet the style guidelines.

Where are the style guidelines?  I looked before but can't find them.

I agree the second part could be a hint.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: generate_series with month intervals
Next
From: "Jeanna Geier"
Date:
Subject: RESTORE Error