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

SIGNAL with MYSQL_ERRNO in 5001..5027 reaches the client as ERROR 2027 "Received malformed packet" instead of the signalled error

    XMLWordPrintable

Details

    • Can result in unexpected behaviour

    Description

      SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='x', MYSQL_ERRNO=5001;
        -- actual:   ERROR 2027 (HY000): Received malformed packet
        -- expected: ERROR 5001 (45000): x
      

      CLI Output

      13.1.1-opt>SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='x', MYSQL_ERRNO=5001;
      ERROR 2027 (HY000): Received malformed packet
      13.1.1-opt>
       
      13.1.1-opt>SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='x', MYSQL_ERRNO=4099;
      ERROR 4099 (45000): x
      13.1.1-opt>
       
      13.1.1-opt>SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='x', MYSQL_ERRNO=5027;
      ERROR 2027 (HY000): Received malformed packet
      13.1.1-opt>
       
      13.1.1-opt>SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT='x', MYSQL_ERRNO=5028;
      ERROR 5028 (45000): x
      13.1.1-opt>
      
      

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.5h
                0.5h

                Git Integration

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