[MDEV-24194] View definition corruption Created: 2020-11-11 Updated: 2021-04-19 Resolved: 2020-12-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.3.25, 10.3.26, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.37, 10.3.28, 10.4.18, 10.5.9 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | azurit | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian Buster 64bit |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Not sure in which version was this bug introduced (at least 10.3.25) but version 10.3.26 draw the attention on it. Do this:
Result in 10.3.25 (see the changed/corrupted ISNULL() part):
Result in 10.3.26:
|
| Comments |
| Comment by azurit [ 2020-11-11 ] |
|
Bug was probably introduced in 10.3.25. |
| Comment by azurit [ 2020-11-11 ] |
|
Just to add, after upgrade to affected version, also existing views becames corrupted. |
| Comment by azurit [ 2020-11-23 ] |
|
This issue was marked as it duplicates |
| Comment by Sergei Golubchik [ 2020-11-23 ] |
|
what do you means, views are corrupted? 10.3.25 appears to be working to me. |
| Comment by azurit [ 2020-11-23 ] |
|
This doesn't seems to be correct syntax to me (or is it?): CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test_view` AS select `test_table`.`ID` AS `ID` from `test_table` where `test_table`.`ID` is null = 0 |
| Comment by Sergei Golubchik [ 2020-11-23 ] |
|
Yes, the syntax `test_table`.`ID` is null = 0 is fine. The bug was that 10.3.26 stopped recognizing it. Next version, 10.3.28, will have it fixed. |
| Comment by Stéphane Guiraud [ 2020-12-09 ] |
|
If it can help someone, the impacted versions seems to be: |