From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Marcin Krol <mrkafk(at)gmail(dot)com> |
Subject: | Re: weird problem with PG 8.1 |
Date: | 2009-03-31 15:47:10 |
Message-ID: | 200903311747.11383.guillaume@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
Le mardi 31 mars 2009 à 17:35:58, Marcin Krol a écrit :
> [...]
> I'm having this completely weird problem that ORDER BY doesn't seem to
> work correctly in PG 8.1 as bundled in RedHat 5.
>
> When I issue:
>
> SELECT * FROM virtualization;
>
> I get all the fields:
>
> reservations=# SELECT * FROM virtualization;
> id | Virtualization | color
> ----+-----------------+---------
> 1 | BOX | #FAFAFA
> 2 | LPAR | #999999
> 3 | BOX ZONE HOST | #FAFAFA
> 4 | NPAR | #9966CC
> 5 | VPAR | #9966CC
>
> But when I try to order by column Virtualization:
>
> reservations=# SELECT * FROM virtualization ORDER BY Virtualization;
>
> ERROR: could not identify an ordering operator for type virtualization
> HINT: Use an explicit ordering operator or modify the query.
>
You should put double quotes for the column name because of the uppercase V in
its name.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2009-03-31 15:48:42 | Re: weird problem with PG 8.1 |
Previous Message | Richard Huxton | 2009-03-31 15:47:09 | Re: Space for pg_dump |