Re: [HACKERS] Re: [INTERFACES] Group/Order by not in target - Was [NEW ODBC DRIVER]

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: sferac(at)bo(dot)nettuno(dot)it (Jose' Soares Da Silva)
Cc: hackers(at)postgreSQL(dot)org (PostgreSQL-development)
Subject: Re: [HACKERS] Re: [INTERFACES] Group/Order by not in target - Was [NEW ODBC DRIVER]
Date: 1998-05-15 13:51:07
Message-ID: 199805151351.JAA10949@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

>
> On Mon, 11 May 1998, David Hartwig wrote:
>
>
> > It is not very difficult to produce this problem in MS Access 97; I
> > expect my users to beat me up pretty good on this issue. Thus, I plan to
> > look into making the fix in the backend myself. Conceptually it does not
> > seem too difficult.
> >
> > 1. Add a hidden attribute to the target node structure.
> >
> > 2. Modify the parser/analyzer to add any attributes in the GROUP/ORDER BY
> > clause that are missing from the target list, to the target list with the
> > hidden attribute set.
> This would be a great enhancement!
> SQL92 specifies that columns in the ORDER BY must appear in the
> SELECT clause, but this limitation has no sense, indeed many databases
> already implement this enhancement.
> Go for it!

There already is code in the backend for Junk fields to be removed. Not
sure what it does, though.
--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 1998-05-15 15:28:28 Re: CREATE DATABASE
Previous Message Thomas G. Lockhart 1998-05-15 13:43:16 CREATE DATABASE

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1998-05-15 15:43:34 NEW ODBC DRIVER v.0240
Previous Message Jose' Soares Da Silva 1998-05-15 13:34:04 Re: [INTERFACES] Group/Order by not in target - Was [NEW ODBC DRIVER]