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

Server Crash on Execute of SQL Statement

    XMLWordPrintable

    Details

      Description

      Either of the following Windowing function constructs do not get an error but crash the server:

      – Case 1
      SUM( CASE WHEN
      SUM( CASE WHEN

      {test} THEN 1 ELSE 0 END ) OVER ( PARTITION BY {field} ) > 0
      AND
      SUM( CASE WHEN {test}

      THEN 1 ELSE 0 END ) OVER ( PARTITION BY

      {field} ) > 0
      THEN 1
      ELSE 0
      END
      )
      – Case 2
      SUM( IF( SUM( IF( {test}, 1 , 0 ) ) OVER ( PARTITION BY {field}

      ) > 0 AND SUM( IF(

      {test}

      , 1 , 0 ) ) OVER ( PARTITION BY

      {field}

      ) > 0,1, 0 ) )

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cvicentiu Vicențiu Ciorbaru
              Reporter:
              Emde Dave
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: