https://bugs.documentfoundation.org/show_bug.cgi?id=92987

            Bug ID: 92987
           Summary: view cannot be a UNION SELECT
           Product: LibreOffice
           Version: 4.2.8.2 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

SELECT "company_name",
 DATEDIFF( 'DD', '1899-12-30', TO_CHAR( CURDATE( ), 'YYYY-MM-' ) + "integer" )
AS "Zahltag"
 FROM "company", "integer"
UNION SELECT ALL "company_name",
 DATEDIFF( 'DD', '1899-12-30', TO_CHAR( CURDATE( ), 'YYYY-MM-' ) + "payday2" )
AS "Zahltag"
 FROM "company"

The above works fine as a query but only the first select will be accepted as a
view.  The UNION SELECT will trigger the error "The given command is not a
select statement. Only queries are allowed."

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to