pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerome Raupach <jraupach@intelcom.fr>
To: pgsql-sql@postgresql.org
Subject: Error with DISTINCT
Date: Fri, 15 Sep 2000 11:03:16 +0200
Message-ID: <39C1E5D4.6D0F1DFC@intelcom.fr> (raw)

testdb=#SELECT DISTINCT table_2.f1, table_1.f2, '2000-08-22' AS
testdb-#date FROM table_1, table_2 WHERE table_1.f1 = table_2.f1;
ERROR:  Unable to identify an ordering operator '<' for type 'unknown'
        Use an explicit ordering operator or modify the query

I must execute this query :

testdb=#SELECT table_2.f1, table_1.f2, '2000-08-22' AS date FROM
testdb-#table_1, table_2 WHERE table_1.f1 = table_2.f1 GROUP BY
testdb-#table_2.f1, table_1.f2;

Is it a bug ?
Thanks in advance.

Jerome.



view thread (3+ messages)  latest in thread

Message-ID: <39C1E5D4.6D0F1DFC@intelcom.fr>
Permalink:  ../39C1E5D4.6D0F1DFC@intelcom.fr/
Also on:    postgresql.org/message-id/39C1E5D4.6D0F1DFC@intelcom.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jraupach@intelcom.fr
  Subject: Re: Error with DISTINCT
  In-Reply-To: <39C1E5D4.6D0F1DFC@intelcom.fr>
  References: <39C1E5D4.6D0F1DFC@intelcom.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox