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

No data type JSON, but CAST(something AS JSON) pretends to work

    XMLWordPrintable

Details

    Description

      MariaDB [test]> SELECT CAST('foo' AS JSON);
      +---------------------+
      | CAST('foo' AS JSON) |
      +---------------------+
      | foo                 |
      +---------------------+
      1 row in set (0.00 sec)
      

      I don't think it makes any sense. We don't even have format JSON, how can we pretend we can CAST to it? And it's not even a valid JSON text.

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              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.