ERROR: SELECT DISTINCT ON with postgresql v 7.1.2 - Mailing list pgsql-hackers

From Kelbert
Subject ERROR: SELECT DISTINCT ON with postgresql v 7.1.2
Date
Msg-id 9j3i40$2hof$1@news.tht.net
Whole thread Raw
Responses Re: ERROR: SELECT DISTINCT ON with postgresql v 7.1.2
List pgsql-hackers
Hello,

I have a problem white one sql request. I got this error message :

Warning: PostgreSQL query failed: ERROR: SELECT DISTINCT ON expressions
must match initial ORDER BY expressions in
/export/castor-b7/local-home/kelbertj/Prog/web/lumiere/admin/recherche_realisateurs.php
on line 85 ERROR: SELECT DISTINCT ON expressions must match initial
ORDER BY expressions SELECT DISTINCT ON (people_id)
people_id,people_lastname,people_firstname from people where
lower(people_firstname) ~* (SELECT text_accents('\\\"Luc\\$')) order by
people_lastname ASC limit 40 offset 0

I didn't find any solution to this problem ! If you have any idea I'll
be most gratefull If you could answer !

Thanks

--
Jean-Michel KELBERT


pgsql-hackers by date:

Previous
From: Jean-Michel Kelbert
Date:
Subject: ERROR: SELECT DISTINCT ON with postgresql v 7.1.2
Next
From: Gunnar Rønning
Date:
Subject: Re: Re: Idea: recycle WAL segments, don't delete/recreate 'em