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

Postfix for MDEV-20076: quotes in GRANT PROXY haven't been changed

    XMLWordPrintable

Details

    Description

      MDEV-20076 introduced a massive change of quote marks in SHOW GRANTS output. However, if the goal was to convert them uniformly to backquotes, it didn't happen. GRANT PROXY still uses single quotes.

      MariaDB [test]> create user foo@localhost;
      Query OK, 0 rows affected (0.000 sec)
       
      MariaDB [test]> grant proxy on 'x-x' to foo@localhost;
      Query OK, 0 rows affected (0.000 sec)
       
      MariaDB [test]> show grants for foo@localhost;
      +-----------------------------------------------+
      | Grants for foo@localhost                      |
      +-----------------------------------------------+
      | GRANT USAGE ON *.* TO `foo`@`localhost`       |
      | GRANT PROXY ON 'x-x'@'%' TO 'foo'@'localhost' |
      +-----------------------------------------------+
      2 rows in set (0.000 sec)
       
      MariaDB [test]> set sql_mode='ORACLE';
      Query OK, 0 rows affected (0.000 sec)
       
      MariaDB [test]> show grants for foo@localhost;
      +-----------------------------------------------+
      | Grants for foo@localhost                      |
      +-----------------------------------------------+
      | GRANT USAGE ON *.* TO "foo"@"localhost"       |
      | GRANT PROXY ON 'x-x'@'%' TO 'foo'@'localhost' |
      +-----------------------------------------------+
      2 rows in set (0.000 sec)
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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