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

Nested containment wrongly counts as membership (MEMBER OF ..))

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      SELECT 1 MEMBER OF ('[[1,2]]'), 'a' MEMBER OF ('[["a"]]'), 1 MEMBER OF ('[[1],2]');
      

      Server version: 13.1.0-MariaDB-asan-debug-log source revision: 7dbc4bef9e3d3dda83e39065f570d97cb8cca66f

      SELECT 1 MEMBER OF ('[[1,2]]'), 'a' MEMBER OF ('[["a"]]'), 1 MEMBER OF ('[[1],2]');
      1 MEMBER OF ('[[1,2]]')	'a' MEMBER OF ('[["a"]]')	1 MEMBER OF ('[[1],2]')
      1	1	1
      

      expected 0,0,0
      JarirBob FYI

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.