Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4.12, 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
Description
The bug described in MDEV-15478 is not fully resolved. When the CTE is used again with UNION in the main statement, it gives error #1054 - Unknown column 'col1' in 'field list'
WITH cte (col1) AS |
(
|
SELECT 1 |
UNION |
SELECT 2 |
)
|
SELECT col1 FROM cte |
-- union statement added to example in MDEV-15478
|
UNION
|
SELECT col1 FROM cte |
This can currently be worked around with:
WITH cte (col1) AS |
(
|
SELECT 1 AS col1 -- alias required |
UNION |
SELECT 2 |
)
|
SELECT col1 FROM cte |
UNION
|
SELECT col1 FROM cte |
Attachments
Issue Links
- relates to
-
MDEV-15478 Explicit column name error in CTE of UNION
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue relates to |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Igor Babaev [ igor ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Summary | Explicit column name error in CTE of UNION - with UNION in main statement | Explicit column name error in CTE of UNION |
Assignee | Igor Babaev [ igor ] | Dmitry Shulga [ JIRAUSER47315 ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Dmitry Shulga [ JIRAUSER47315 ] | Igor Babaev [ igor ] |
Fix Version/s | 10.2.38 [ 25207 ] | |
Fix Version/s | 10.3.29 [ 25206 ] | |
Fix Version/s | 10.4.19 [ 25205 ] | |
Fix Version/s | 10.5.10 [ 25204 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 118143 ] | MariaDB v4 [ 158778 ] |