Re: inconsistency in aliasing

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: inconsistency in aliasing
Date: 2009-01-14 11:38:19
Message-ID: 20090114113819.GD30398@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

In response to Louis-David Mitterrand :
> > Yes, you can't use the alias in the ORDER BY. Use the real column-name.
> >
> > select current_timestamp::abstime::int4 as score order by
> > current_timestamp::abstime::int4;
>
> Did you try
>
> "select current_timestamp::abstime::int4 as score order by score;" ?
>
> This seems to be an "order by <alias>"

Ouch, my fault, muddled with WHERE

Thx, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-01-14 11:41:40 Re: inconsistency in aliasing
Previous Message Louis-David Mitterrand 2009-01-14 11:34:06 Re: inconsistency in aliasing

Browse pgsql-hackers by date

  From Date Subject
Next Message Scott Marlowe 2009-01-14 11:41:40 Re: inconsistency in aliasing
Previous Message Louis-David Mitterrand 2009-01-14 11:34:06 Re: inconsistency in aliasing