Bug Report
| Q |
A |
| Version |
4.4.1 |
| Previous Version if the bug is a regression |
n/a |
Summary
A query with union parts cannot also have a CTE (with) expression.
Current behavior
$query->with('cte', $cte)->union($alfa)->addUnion($bravo)->getSQL();
This returns a union with no CTE.
Expected behavior
The CTE should be present in the output.
How to reproduce
As above.