MTR testcase creation fails due to a regex in test.Pm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Random Query Generator |
New
|
Undecided
|
Unassigned |
Bug Description
MTR testcases containing the following code (using standard optimizer grammars) are created:
SELECT
(
SELECT MIN
( SUBQUERY1_
FROM t3 AS SUBQUERY1_t1 STRAIGHT_JOIN
( t2 AS SUBQUERY1_t2 JOIN t1 AS SUBQUERY1_t3 ON SUBQUERY1_
ON SUBQUERY1_
WHERE SUBQUERY1_
FROM t1 AS table1
RIGHT JOIN
(
SELECT *
FROM t3 )
AS table2 JOIN t1 AS table3 ON table3.
This fails with:
1630: FUNCTION test.MIN does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
Changing this:
SELECT MIN
( SUBQUERY1_
to:
SELECT MIN(SUBQUERY1_
Resolves the issue.
May be a simple newline change/fixup in the code