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

GRANT inside an SP does not work well on 2nd execution

    XMLWordPrintable

    Details

    • Sprint:
      10.2.4-5

      Description

      I run this script:

      DROP PROCEDURE IF EXISTS sp1;
      CREATE PROCEDURE sp1()
        GRANT ALL PRIVILEGES ON *.* TO 'foo'@'%' IDENTIFIED BY 'pass';
      CALL sp1();
      

      It seems to work fine.
      However, if I call sp1() for the second time, it returns a strange warning:

      CALL sp1();
      SHOW WARNINGS;
      

      +---------+------+--------------------------------------------------------------------------------------+
      | Level   | Code | Message                                                                              |
      +---------+------+--------------------------------------------------------------------------------------+
      | Warning | 1366 | Incorrect string value: '\xA5\xA5\xA5\xA5\xA5\xA5...' for column 'Password' at row 1 |
      +---------+------+--------------------------------------------------------------------------------------+
      

        Attachments

          Activity

            People

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: