Skip site navigation (1) Skip section navigation (2)

RE: 7.0 weirdness

From: Jeff MacDonald <jeff(at)pgsql(dot)com>
To: Patrick FICHE <pfiche(at)prologue-software(dot)fr>
Cc: Jeff MacDonald <jeff(at)pgsql(dot)com>, Pgsql-Sql <pgsql-sql(at)postgresql(dot)org>
Subject: RE: 7.0 weirdness
Date: 2000-05-30 13:46:30
Message-ID: Pine.BSF.4.21.0005301046220.2897-100000@rage.hub.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-sql
gid is unique..

jeff

On Tue, 30 May 2000, Patrick FICHE wrote:

> It seems to me that it was lack of control in 6.5 version...
> For one "gid", you may have several "created" values, so Postgres is not
> able to decide which value must be taken and ordered
> 
> Simple example
> gid         created
> 1            1
> 1            3
> 2            2
> 
> In which order is Postgres supposed to give the data???
> 
> 
> Patrick Fiche
> -----Message d'origine-----
> De : pgsql-sql-owner(at)hub(dot)org [mailto:pgsql-sql-owner(at)hub(dot)org]De la part
> de Jeff MacDonald
> Envoy : mardi 30 mai 2000 14:28
>  : pgsql-sql(at)postgresql(dot)org; pgsql-hackers(at)postgresql(dot)org
> Objet : [SQL] 7.0 weirdness
> 
> 
> hi folks,
> 
> this query works fine in 6.5 but screwie in 7.0
> 
> 7.0
> 
> gm=> SELECT DISTINCT gid FROM members
> gm-> WHERE active = 't'
> gm-> AND  (gender = 0
> gm->         AND  (wantrstypemale LIKE '%Short Term%'
> gm->                 OR wantrstypemale like '%Marriage%'
> gm->                 OR wantrstypemale like '%Long Term%'
> gm->                 OR wantrstypemale like '%Penpal%'
> gm->                 OR wantrstypemale like '%Activity Partner%')
> gm-> )  order by created desc;
> ERROR:  For SELECT DISTINCT, ORDER BY expressions must appear in target list
> gm=>
> 
> 
> any idea's ?
> 
> jeff
> 
> 
> 
> 


In response to

pgsql-hackers by date

Next:From: Karel ZakDate: 2000-05-30 14:08:31
Subject: Re: AW: AW: Proposal for enhancements of privilege system
Previous:From: Zeugswetter Andreas SBDate: 2000-05-30 13:44:11
Subject: AW: AW: Proposal for enhancements of privilege system

pgsql-sql by date

Next:From: Jeff MacDonaldDate: 2000-05-30 14:10:24
Subject: Re: 7.0 weirdness
Previous:From: Patrick FICHEDate: 2000-05-30 13:17:38
Subject: RE: 7.0 weirdness

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group