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

MariaDB 10.5 crash when execute query with SET

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.5
    • Fix Version/s: 10.5.11
    • Component/s: Variables
    • Labels:
    • Environment:
      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

              People

              Assignee:
              Unassigned
              Reporter:
              JoanneS Joanne Seneque
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: