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

MariaDB 10.5 crash when execute query with SET

    XMLWordPrintable

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

        1. mariadb_error_log.txt
          3 kB
          Joanne Seneque
        2. my.ini
          0.2 kB
          Joanne Seneque

        Issue Links

          Activity

            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.