Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Won't Fix
-
10.4(EOL), 10.5
-
None
-
ALL - but found on CentOS Linux release 7.4.1708 (Core)
Description
In 10.3 this statement works:
select id1 from t1 for update |
union
|
select id2 from t2 for update |
But in 10.4 it gives this error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union
|
select id2 from t2 for update' at line 2
|
If I use parenthesis it works:
(select id1 from t1 for update) union (select id2 from t2 for update); |
Attachments
Issue Links
- relates to
-
MDEV-29537 Creation of view with UNION and SELECT ... FOR UPDATE in definition is failed with error
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Key |
|
|
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] | |
Affects Version/s | 10.4.13-7 [ 24242 ] | |
Project | MariaDB Enterprise [ 11500 ] | MariaDB Server [ 10000 ] |
Priority | Minor [ 4 ] | Major [ 3 ] |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Assignee | Oleksandr Byelkin [ sanja ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Description |
In 10.3 this statement works:
select id1 from t1 for update union select id2 from t2 for update But in 10.4 it gives this error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union select id2 from t2 for update' at line 2 If I use parenthesis it works: (select id1 from t1 for update) union (select id2 from t2 for update); |
In 10.3 this statement works:
{code:sql} select id1 from t1 for update union select id2 from t2 for update {code} But in 10.4 it gives this error: {noformat} ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'union select id2 from t2 for update' at line 2 {noformat} If I use parenthesis it works: {code:sql} (select id1 from t1 for update) union (select id2 from t2 for update); {code} |
Status | Open [ 1 ] | In Progress [ 3 ] |
Component/s | Parser [ 10201 ] | |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Won't Fix [ 2 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 111374 ] | MariaDB v4 [ 158106 ] |
Link |
This issue relates to |
Zendesk Related Tickets | 131867 |