7.0 weirdness

From: Jeff MacDonald <jeff(at)pgsql(dot)com>
To: pgsql-sql(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: 7.0 weirdness
Date: 2000-05-30 12:28:11
Message-ID: Pine.BSF.4.21.0005300927490.2897-100000@rage.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Patrick FICHE 2000-05-30 13:17:38 RE: 7.0 weirdness
Previous Message Peter Eisentraut 2000-05-30 11:49:40 Re: AW: Proposal for enhancements of privilege system

Browse pgsql-sql by date

  From Date Subject
Next Message Patrick FICHE 2000-05-30 13:17:38 RE: 7.0 weirdness
Previous Message Peter Eisentraut 2000-05-30 10:41:23 Re: Inheritance