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

IS JSON prediction does not work on generated columns

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 12.3
    • 12.3.1
    • JSON
    • None
    • Unexpected results

    Description

      IS JSON prediction does not work on generated columns

      MariaDB [test]> CREATE OR REPLACE TABLE t (j JSON, jj BOOL GENERATED ALWAYS AS (j IS JSON ARRAY) VIRTUAL);
      ERROR 1305 (42000): FUNCTION test.is_json does not exist
      MariaDB [test]> CREATE OR REPLACE TABLE t (j JSON CHECK (j IS JSON ARRAY));
      ERROR 1305 (42000): FUNCTION test.is_json does not exist
      MariaDB [test]> CREATE OR REPLACE TABLE t (j JSON CHECK (j IS NOT JSON));
      ERROR 1305 (42000): FUNCTION test.is_json does not exist
      MariaDB [test]> CREATE OR REPLACE TABLE t (j JSON, jj BOOL DEFAULT (j IS NOT JSON ARRAY));
      ERROR 1305 (42000): FUNCTION test.is_json does not exist
      

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              ramesh Ramesh Sivaraman
              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.