[MDEV-32091] SHOW CREATE VIEW does not show original view definition Created: 2023-09-04 Updated: 2023-11-23 Resolved: 2023-11-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Views |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Michael Widenius | Assignee: | Alexander Barkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
One problem is that we store the view text after conversion, when we should stored the original view definition. Another problem is that we show the modified view definition, 'view_body_utf8', instead of 'query' (from v1.frm). This should not be that hard to fix as v1.frm stores both the original view text and the modified one. For this to work, we probably have to also store the sql mode for the view and show it in information_schema.views; |