| From: | Markus Schaber <schabi(at)logix-tt(dot)com> |
|---|---|
| To: | PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Slightly confused error message |
| Date: | 2006-04-28 15:59:45 |
| Message-ID: | 44523BF1.1080307@logix-tt.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Hi,
I just stumbled over a slightly confused error message:
mydb=# select count(*),coverage_area from myschema.streets except select
cd as coverage_area from countryref.disks group by streets.coverage_area;
ERROR: column "streets.coverage_area" must appear in the GROUP BY
clause or be used in an aggregate function
As the query looks, streets.coverage_area is actually used in the GROUP BY.
I know how to fix the query, but I wonder whether it is worth the effort
to try improving the error message.
Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-04-28 16:07:04 | Re: Slightly confused error message |
| Previous Message | Guy Fraser | 2006-04-28 15:52:31 | Re: LinkedList |