Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-31859

SHOW CREATE VIEW generates broken SQL when week() is used in View

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 10.11
    • N/A
    • None
    • None
    • 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
      show create view view_name \G

      generates this broken SQL, it adds an "," without any following value.
      CREATE VIEW `view_name` AS select week(curdate(),)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rawodex Marcel Richter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.