From: | Jean-Luc Lachance <jllachan(at)nsd(dot)ca> |
---|---|
To: | Andreas Schlegel <schlegel(at)software(dot)b(dot)uunet(dot)de> |
Cc: | pgsql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Error with DISTINCT and AS keywords |
Date: | 2002-07-10 15:22:09 |
Message-ID: | 3D2C5121.C26FD800@nsd.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
PostgreSQL does not know how to sort 'TEST'.
You must help it be telling it what tpe it is.
Add ::text after 'TEST' as in 'TEST'::text.
Maybe PostgreSQL should default to text for unknown types...
JLL
Andreas Schlegel wrote:
>
> Hi,
>
> I need some help to let this sql statement run with Postgres 7.2.1
>
> Doesn't work:
> select DISTINCT tnr, titel, 'TEST' AS testcol from tTitel;
> ERROR: Unable to identify an ordering operator '<' for type 'unknown'
> Use an explicit ordering operator or modify the query
>
> If I remove the DISTINCT keyword it works:
> select tnr, titel, 'TEST' AS testcol from tTitel;
>
> Greetings,
> Andreas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2002-07-10 15:27:10 | Re: Waiting for Update |
Previous Message | Tom Lane | 2002-07-10 14:09:17 | Re: Error with DISTINCT and AS keywords |