You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(
(
SELECT1AS"value"
)
UNION
(
SELECT2AS"value"
)
)
UNION
(
SELECT3AS"value"
);
Resulting error:
jet: Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNION\n (\n SELECT ? AS \"value\"\n )\n)\nUNION\n(\n SELECT ? AS ...' at line 5
Expected behavior
I'd expect a query that doesn't return error, like:
(
SELECT1AS"value"
)
UNION
(
SELECT2AS"value"
)
UNION
(
SELECT3AS"value"
);
The text was updated successfully, but these errors were encountered:
Describe the bug
When using UNION on the result of another UNION, the resulting query makes MySQL/MariaDB complain.
Environment (please complete the following information):
Code snippet
Resulting query:
Resulting error:
Expected behavior
I'd expect a query that doesn't return error, like:
The text was updated successfully, but these errors were encountered: