[MDEV-29537] Creation of view with UNION and SELECT ... FOR UPDATE in definition is failed with error Created: 2022-09-14 Updated: 2024-01-23 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Lena Startseva | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | view-protocol | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Test:
Expected result:
Actual result:
|
| Comments |
| Comment by Marko Mäkelä [ 2022-09-14 ] |
|
Is it a good idea to allow locking reads in a view, or in joins whose execution order might not be deterministic, depending on the query plan? Note: there is also LOCK IN SHARE MODE. |
| Comment by Lena Startseva [ 2022-09-15 ] |
|
marko, I agree with you, but since the documentation does not prohibit this and in version 10.3 this test passes successfully, I was forced to create a bug. |
| Comment by Oleksandr Byelkin [ 2022-12-01 ] |
|
According to https://mariadb.com/kb/en/create-view/ the options can be used, if they will be taken is undefined. |