Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Base query that references another query fails if subquery has order by statement | ||
---|---|---|---|
Product: | Base | Reporter: | ameliab <abbr> |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | drewjensen.inbox, issues |
Version: | OOo 3.2.1 | ||
Target Milestone: | --- | ||
Hardware: | Mac | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
ameliab
2010-08-29 22:58:10 UTC
For examples, see the test database attached to issue 114187. Can confirm using Go-00 3.2.1 in the case of queries with escape prcocessing disabled, the sort and filter functionality does not work. If you open the query designer and execute the query in these cases the GUI actually reflects this as the sort and filter buttons are not enabled. If you run the query directly the GUI elements for sort and filter are enabled but do not function. For a test database see the file attached to issue 114187 OK - seems that is what can happen with two browser windows open at the same time - updated the wrong issue. I am changing this one from a defect to an enhancement request. I disagree with the classification of this as an enhancement, but I will leave it up to an independent observer to make a final judgement. This isn't a case of wanting some extra SQL behaviour that OO doesn't currently support. When creating queries using the wizard or design GUI, there is always an option to sort the query, and there is always the option to base one query on another query. However, when you do both there is an error. I'd call that a defect. In particular, for someone who is unfamiliar with SQL and just using the GUI, the final error message would be quite incomprehensible, because it complains about an "order by" clause and the query they are trying to run might not have a sort order of its own. I agree to this being an enhancement, since it seems that the HSQLDB is responsible here, by not accepting this particular statement having an ORDER BY clause in a sub select. That is, if you create a native query constituted by SELECT "ThrowNum", "Heads" FROM ( SELECT "ThrowNum", "MoreThanHalf" AS "Heads" FROM "View" ORDER BY "Heads" ASC ) WHERE "Heads" = True an switch on "Direct SQL", then this already leads to an error. And in this case, Base is not involved at all, it just passes the SQL to HSQLDB. So, it really looks like a limitation of the latter, not the former. |