Subject: | Mysql producer fails on views with unions |
I have no success on producing CREATE VIEW on views defined with unions
like so:
SELECT id
FROM User
UNION
SELECT id
FROM Object
The generated statement is:
VIEW `my_view` ( `id` ) AS (
SELECT id FROM User UNION SELECT id FROM Object
)
The parentheses added by producer around united selects confuse MySQL
due to the bug http://bugs.mysql.com/bug.php?id=9198 which is "won't
fix". Are they necessary at all?