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

Unbalanced brackets in JSON_OBJECTAGG upon HAVING with several conditions

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5, 10.6, 11.6(EOL)
    • 10.5, 10.6, 10.11, 11.4
    • JSON
    • None

    Description

      CREATE TABLE t (f varchar(1));
      INSERT INTO t VALUES ('a'),('b');
      SELECT JSON_OBJECTAGG(f, f) AS ff FROM t HAVING (ff != 'foo' AND ff != 'bar');
      

      Actual result, 10.5 baca5265

      MariaDB [test]> SELECT JSON_OBJECTAGG(f, f) AS ff FROM t HAVING (ff != 'foo' AND ff != 'bar');
      +----------------------+
      | ff                   |
      +----------------------+
      | {"a":"a", "b":"b"}}} |
      +----------------------+
      1 row in set (0.002 sec)
      

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.