From: | Stefan Wild <wilds81(at)yahoo(dot)de> |
---|---|
To: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Wrong "ORDER BY" on a numeric value result |
Date: | 2010-08-16 16:43:25 |
Message-ID: | 892299.40038.qm@web26706.mail.ukl.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
The answer is quite simple: this statement was composed by several functions used for ordering on string values as also on numeric.
--- Thomas Kellerer <spam_eater(at)gmx(dot)net> schrieb am So, 15.8.2010:
> Von: Thomas Kellerer <spam_eater(at)gmx(dot)net>
> Betreff: Re: [GENERAL] Wrong "ORDER BY" on a numeric value result
> An: pgsql-general(at)postgresql(dot)org
> Datum: Sonntag, 15. August, 2010 10:43 Uhr
> Stefan Wild wrote on 15.08.2010
> 10:36:
> >> column is numeric, but upper() works on text, and
> returns
> >> text, so your
> >> numeric column got casted to text by using upper
> (which is
> >> pointless
> >> anyway - there is no "upper" version of digits).
> >> remove upper() and you'll be fine.
> >>
>
> > Thank you guys! That was the point.
>
> The real question is:
>
> what did you try to accomplish with the UPPER() on a
> numeric column?
>
> Regards
> Thomas
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alban Hertroys | 2010-08-16 17:07:05 | Re: good exception handling archiecutre |
Previous Message | Luís de Sousa | 2010-08-16 15:26:07 | Using record.items() method |