| From: | David Hartwig <daybee(at)bellatlantic(dot)net> |
|---|---|
| To: | Edmund Mergl <E(dot)Mergl(at)bawue(dot)de> |
| Cc: | hackers <pgsql-hackers(at)postgreSQL(dot)org> |
| Subject: | Re: [HACKERS] 6.4 Aggregate Bug |
| Date: | 1998-08-01 19:32:18 |
| Message-ID: | 35C36D42.FD2168FF@bellatlantic.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Edmund Mergl wrote:
> David Hartwig wrote:
> >
> > While testing my 6.4 patch to allow functions/expressions to be
> > specified in the ORDER/GROUP BY clause (and not in the target list) I
>
> will this patch allow the following syntax :
>
> select count(SUBSTR(var,1,5)), SUBSTR(var,1,5) from t group by SUBSTR(var,1,5);
>
> This is important for writing database-independent code (e.g. it's the only
> syntax Oracle understands).
>
>
YES. It also handles expressions like "x / 2". Also, the functions (or
expressions) need not be in the target list.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 1998-08-01 19:58:04 | Re: [HACKERS] Problem with CVS access to current sources |
| Previous Message | Bruce Momjian | 1998-08-01 17:37:49 | Re: [HACKERS] OR with multi-key indexes |