[MDEV-31859] SHOW CREATE VIEW generates broken SQL when week() is used in View Created: 2023-08-06 Updated: 2023-09-10 Resolved: 2023-09-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.11 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Marcel Richter | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian bookworm |
||
| Description |
|
CREATE VIEW generates broken SQL on week() function creating this Example View, to get the week of the current date works. create view view_name as select (week(curdate())) ; with SHOW CREATE for it generates this broken SQL, it adds an "," without any following value. |
| Comments |
| Comment by Alice Sherepa [ 2023-08-07 ] | |||||||||||||||||||||
|
What version of MariaDB do you use? I tried to repeat on 10.11.4 and it works as expected:
|