Apache OpenOffice (AOO) Bugzilla – Issue 57513
OO Base frontend does not recognize UNION SELECT statements
Last modified: 2013-02-07 22:43:20 UTC
The function SELECT CASE WHEN works in queries and views, but if a query contains such a statement, the design view of the query is no longer available and the report generator will refuse to show the fields of that query. I tried to fool the report generator, by generating a report before the query contained the union select part (the second select statement, which follows the word UNION, included), and afterwards modifying the query, but the report won't generate any report, merely the layout template, if used once the query was made to include the UNION SELECT part.
Created attachment 31261 [details] ODB file with two small tables, one query and one report to demonstrate the problem.
Sorry, the text in the first paragraph contains an error. Instead of "The function SELECT CASE WHEN" it should read "The UNION SELECT statement"
several 'handmade' sql strings cannot be 'translated' in the query design ui - this is one of them - to improve the query design in this direction make sense send further to: 'requirements'