Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1234

Nested CASE filters not processed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.1.4
    • ExeMgr
    • None
    • 2018-05, 2018-06, 2018-07, 2018-08

    Description

      This appears to return no data:

      select
      *
      from table
      where
      (CASE
      WHEN (COALESCE('0') = '0') THEN
      (CASE
      WHEN (COALESCE('ALL') = 'ALL') THEN 1=1
      WHEN (COALESCE('ALL') IS NOT NULL) THEN company = 'AAA'
      ELSE 0=1
      END)
      ELSE (CASE
      WHEN (COALESCE('ALL') = 'ALL') THEN 0=1
      WHEN (COALESCE('ALL') IS NOT NULL) THEN company = 'AAA'
      ELSE 1=1
      END)
      END);
      

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              LinuxJedi Andrew Hutchings (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.