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

MariaDB 10.5 crash when execute query with SET

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.5
    • 10.5.11
    • Variables
    • Windows server 2012 R2

    Description

      Hello,

      MariaDb 10.5.9 crashes when executing the following :

      SET @scopeId   = 3004,
          @NPSER     = (SELECT pd.id FROM shrm_payded pd  WHERE pd.scopeId = @scopeId AND   pd.pdCode = '001'),
          @NPSERA    = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId  AND   pd.pdCode = '001');
      

      When having each SET on a single line (i.e. ending with ";") it works fine.

      This same query executes without error on MariaDB 10.3.14, but in 10.5.9 it crashes the SQL server.

      Is there a configuration / system variable that needs to be set so that it executes correctly ?

      Thanks

      Joanne

      NOTE: attached an extract of the error log and the "my.ini" file

      Attachments

        Issue Links

          Activity

            JoanneS Joanne Seneque created issue -
            JoanneS Joanne Seneque made changes -
            Field Original Value New Value
            Description Hello,

            MariaDb 10.5.9 crashes when executing the following :
            SET @scopeId = 3004,
                @NPSER = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001'),
                @NPSERA = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001');

            When having each SET on a single line (i.e. ending with ";") it works fine.

            This same query executes without error on MariaDB 10.3.14, but in 10.5.9 it crashes the SQL server.

            Is there a configuration / system variable that needs to be set so that it executes correclty ?

            Thanks

            Joanne

            NOTE: attached an extract of the error log and the "my.ini" file
            Hello,

            MariaDb 10.5.9 crashes when executing the following :
            SET @scopeId = 3004,
                @NPSER = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001'),
                @NPSERA = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001');

            When having each SET on a single line (i.e. ending with ";") it works fine.

            This same query executes without error on MariaDB 10.3.14, but in 10.5.9 it crashes the SQL server.

            Is there a configuration / system variable that needs to be set so that it executes correctly ?

            Thanks

            Joanne

            NOTE: attached an extract of the error log and the "my.ini" file
            alice Alice Sherepa made changes -
            Affects Version/s 10.5 [ 23123 ]
            alice Alice Sherepa made changes -
            Fix Version/s 10.5 [ 23123 ]
            alice Alice Sherepa made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            alice Alice Sherepa made changes -
            Assignee Oleksandr Byelkin [ sanja ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Affects Version/s 10.5.9 [ 25109 ]
            alice Alice Sherepa made changes -
            Labels regression
            serg Sergei Golubchik made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Description Hello,

            MariaDb 10.5.9 crashes when executing the following :
            SET @scopeId = 3004,
                @NPSER = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001'),
                @NPSERA = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001');

            When having each SET on a single line (i.e. ending with ";") it works fine.

            This same query executes without error on MariaDB 10.3.14, but in 10.5.9 it crashes the SQL server.

            Is there a configuration / system variable that needs to be set so that it executes correctly ?

            Thanks

            Joanne

            NOTE: attached an extract of the error log and the "my.ini" file
            Hello,

            MariaDb 10.5.9 crashes when executing the following :
            {code:sql}
            SET @scopeId = 3004,
                @NPSER = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001'),
                @NPSERA = (SELECT pd.id FROM shrm_payded pd WHERE pd.scopeId = @scopeId AND pd.pdCode = '001');
            {code}
            When having each SET on a single line (i.e. ending with ";") it works fine.

            This same query executes without error on MariaDB 10.3.14, but in 10.5.9 it crashes the SQL server.

            Is there a configuration / system variable that needs to be set so that it executes correctly ?

            Thanks

            Joanne

            NOTE: attached an extract of the error log and the "my.ini" file
            sanja Oleksandr Byelkin made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            sanja Oleksandr Byelkin made changes -
            Fix Version/s 10.5.10 [ 25204 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Cannot Reproduce [ 5 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            elenst Elena Stepanova made changes -
            Assignee Oleksandr Byelkin [ sanja ]
            Resolution Cannot Reproduce [ 5 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            elenst Elena Stepanova made changes -
            Fix Version/s 10.5.11 [ 25734 ]
            Fix Version/s 10.5.10 [ 25204 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            elenst Elena Stepanova made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 121628 ] MariaDB v4 [ 159240 ]

            People

              Unassigned Unassigned
              JoanneS Joanne Seneque
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.