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

CREATE OR REPLACE VIEW does not require DROP privilege

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.0, 10.1
    • 10.1.3
    • OTHER
    • None

    Description

      Check the code in sql_view.cc.
      It does not seem to require DROP privilege to do "CREATE OR REPLACE VIEW".

      It should, as "CREATE OR REPLACE" is actually two queries ("DROP VIEW IF EXISTS" followed by a "CREATE VIEW") run in a single shot.

      Attachments

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.