|
|
Sponsor |
Re: About improvement of DERBY-134: msg#00332apache.db.derby.devel
Jack Klebanoff wrote:
From the SQL spec, the <sort-key> is simply a value expression evaluated for each row. Hence "ORDER BY 2-1" means that all rows are peers and the ordering is implementation-dependent. I think allowing the value-expressions to evaluate to column position is potentially confusing. For example, suppose you have "ORDER BY ?" - do we order by the supplied value (which would be the same for all rows making the actual ordering implementation-dependent) or do we order by the column position (with the potential need to re-select indexes used to assist in ordering). I believe it is simple and SQL-compliant to have very simple rules here: 1) if all <sort-key>s are integer literals, then sort by the column position they imply. This is SQL-compliant as the comparison criteria for each row will be the same, making all rows peers and the actual order implementation dependent (we just define ours as using the appropriate column value). 2) if any <sort-key> is not an integer literal then we treat all of them as <value expression> and compare rows accordingly. -- Jeremy
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Overly conservative on reserved words?, Jeremy Boynes |
|---|---|
| Next by Date: | [Announce] Jeremy Boynes joins Derby PPMC, Jean T. Anderson |
| Previous by Thread: | Re: About improvement of DERBY-134, TomohitoNakayama |
| Next by Thread: | specifications ?, Alexander B. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|