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

Roles aren't supported in prepared statements

Details

    • 10.1.13

    Description

      It's not possible to use CREATE/DROP ROLE in prepared statements. Example:

      MariaDB [(none)]> SET @createRole = 'CREATE ROLE developers';
      Query OK, 0 rows affected (0.00 sec)
      MariaDB [(none)]> PREPARE stmtCreateRole FROM @createRole;
      ERROR 1295 (HY000): This command is not supported in the prepared statement protocol yet

      Attachments

        Issue Links

          Activity

            Same for REVOKE, see MDEV-9691.

            elenst Elena Stepanova added a comment - Same for REVOKE , see MDEV-9691 .
            cvicentiu Vicențiu Ciorbaru added a comment - Hi Sergei, Can you please review the following 2 patches for this MDEV? http://lists.askmonty.org/pipermail/commits/2016-March/009151.html http://lists.askmonty.org/pipermail/commits/2016-March/009158.html Thanks!

            You've simply enabled these commands. Is that enough? So far looks like it is.

            Please add few tests with reexecution. Like:

            PREPARE @stm1 "...";
            EXECUTE @stmt1;
            EXECUTE @stmt1;
            

            Then ok to push.

            serg Sergei Golubchik added a comment - You've simply enabled these commands. Is that enough? So far looks like it is. Please add few tests with reexecution. Like: PREPARE @stm1 "..." ; EXECUTE @stmt1; EXECUTE @stmt1; Then ok to push.
            cvicentiu Vicențiu Ciorbaru added a comment - Fixed with: https://github.com/MariaDB/server/commit/c4bef7ad3c1528e902e88aa8b2446f29ffc1b0e6 https://github.com/MariaDB/server/commit/287f2d2947c15d1e7ff35ba123b37291147e1c85 https://github.com/MariaDB/server/commit/29753fb9f285afa0550c54409a985970460b9172

            People

              cvicentiu Vicențiu Ciorbaru
              ratzpo Rasmus Johansson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.