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

Wrong SHOW PROCEDURE output for SET GLOBAL sysvar1=expr, sysvar2=expr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.3, 10.4, 10.5
    • Fix Version/s: 10.5.0
    • Component/s: Stored routines
    • Labels:
      None

      Description

      DELIMITER $$
      CREATE OR REPLACE PROCEDURE p1()
      BEGIN
        SET GLOBAL max_allowed_packet=16000000, max_error_count=60;
        SELECT @@GLOBAL.max_allowed_packet, @@GLOBAL.max_error_count;
      END;
      $$
      DELIMITER ;
      SHOW PROCEDURE CODE p1;
      

      +-----+---------------------------------------------------+
      | Pos | Instruction                                       |
      +-----+---------------------------------------------------+
      |   0 | stmt 31 "SET  GLOBAL max_allowed_packet=16000000" |
      |   1 | stmt 31 "SET  max_error_count=60"                 |
      |   2 | stmt 0 "SELECT @@GLOBAL.max_allowed_packet, @..." |
      +-----+---------------------------------------------------+
      

      Notice, the second "stmt" instruction is missing the GLOBAL keyword.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: