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

The same boolean expression does not have an identical result in view and JSON_OBJECT

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11, 11.4, 11.8, 12.3, 13.1
    • 10.11, 11.4, 11.8, 12.3, 13.1
    • JSON
    • None

    Description

      Hi,

      I found that the same boolean expression does not have an identical result in view and JSON_OBJECT. This is an example:

      CREATE VIEW v AS SELECT 1=1 AS b1;
      SELECT JSON_OBJECT('x', b1) = (SELECT JSON_OBJECT('x', (SELECT 1=1))) FROM v; -- 0, expecte 1
      

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            ChiZhang Chi Zhang
            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.