Re: ORDER BY col is NULL in UNION causes error?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Mike Benoit <ipso(at)snappymail(dot)ca>, Michael Glaesemann <grzm(at)seespotcode(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: ORDER BY col is NULL in UNION causes error?
Date: 2007-01-11 19:24:58
Message-ID: 28703.1168543498@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Well, it can be an expression _if_ the expression _matches_ an existing
> UNION column.

You're mistaken. It has to be *an output column name*. Not anything else.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-01-11 19:27:51 Re: TRIGGER BEFORE INSERT
Previous Message Merlin Moncure 2007-01-11 19:24:07 Re: Trying to load MySQL data