Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
This query:
SELECT 1 UNION SELECT * FROM t1 PROCEDURE ANALYSE(); |
is disallowed by this code:
procedure_clause:
|
...
|
if (&lex->select_lex != lex->current_select) |
{
|
// SELECT * FROM t1 UNION SELECT * FROM t2 PROCEDURE ANALYSE(); |
my_error(ER_WRONG_USAGE, MYF(0), "PROCEDURE", "subquery"); |
MYSQL_YYABORT;
|
}
|
It should be disallowed syntactically.
Attachments
Issue Links
- blocks
-
MDEV-8909 union parser cleanup
- Closed