Re: [BUGS] PostgreSQL bug in SELECT DISTINCT

2001-05-04 Thread J.R. Onyschak
Tom Lane wrote: >"J.R. Onyschak" <[EMAIL PROTECTED]> writes: > >>When I execute the following query: >>SELECT DISTINCT title FROM division ORDER BY UPPER(title); >> >>I get: >>ERROR: For SELECT DISTINCT, ORDER BY expressions must appear in target list >> >>If I remove DISTINCT, the query works

Re: [BUGS] PostgreSQL bug in SELECT DISTINCT

2001-05-03 Thread Tom Lane
"J.R. Onyschak" <[EMAIL PROTECTED]> writes: > When I execute the following query: > SELECT DISTINCT title FROM division ORDER BY UPPER(title); > I get: > ERROR: For SELECT DISTINCT, ORDER BY expressions must appear in target list > If I remove DISTINCT, the query works fine. > Is this illegal

[BUGS] PostgreSQL bug in SELECT DISTINCT

2001-05-03 Thread J.R. Onyschak
When I execute the following query: SELECT DISTINCT title FROM division ORDER BY UPPER(title); I get: ERROR: For SELECT DISTINCT, ORDER BY expressions must appear in target list If I remove DISTINCT, the query works fine. Is this illegal or a known bug? thanks for any help, J.R. PostgreSQL