Bug #111559 | View with CTE syntax error | ||
---|---|---|---|
Submitted: | 26 Jun 2023 9:10 | Modified: | 26 Jun 2023 9:27 |
Reporter: | Pedro Ferreira | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.33 | OS: | Ubuntu (22.04) |
Assigned to: | CPU Architecture: | x86 (x86_64) | |
Tags: | cte, VIEW |
[26 Jun 2023 9:10]
Pedro Ferreira
[26 Jun 2023 9:21]
Pedro Ferreira
Fixed typo in title
[26 Jun 2023 9:27]
MySQL Verification Team
Hello Pedro Ferreira, Thank you for the report and test case. Verified as described. regards, Umesh
[3 Jul 2023 13:36]
Dag Wanvik
Posted by developer: The view text stored is: with `x` (`x`) as (select 1 AS `1`), select 1 AS `1` from `x` which is obviously wrong, hence the syntax error. The second common_table_expr is missing; only the comma after the first is present.