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

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

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

            elenst Elena Stepanova created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            elenst Elena Stepanova made changes -
            Component/s JSON [ 13908 ]
            Component/s OTHER [ 10125 ]
            elenst Elena Stepanova made changes -
            holyfoot Alexey Botchkov made changes -
            Fix Version/s 10.2.3 [ 22115 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Won't Fix [ 2 ]
            Status Open [ 1 ] Closed [ 6 ]
            elenst Elena Stepanova made changes -
            Assignee Alexey Botchkov [ holyfoot ] Sergei Golubchik [ serg ]
            Resolution Won't Fix [ 2 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Alexey Botchkov [ holyfoot ]
            dbart Daniel Bartholomew made changes -
            Fix Version/s 10.2.4 [ 22116 ]
            Fix Version/s 10.2.3 [ 22115 ]
            elenst Elena Stepanova made changes -
            Priority Major [ 3 ] Blocker [ 1 ]
            elenst Elena Stepanova made changes -
            Labels json-10.2 10.2-rc json-10.2
            serg Sergei Golubchik made changes -
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.2.4 [ 22116 ]
            holyfoot Alexey Botchkov made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Priority Blocker [ 1 ] Major [ 3 ]
            serg Sergei Golubchik made changes -
            Labels 10.2-rc json-10.2 10.2-ga json-10.2
            serg Sergei Golubchik made changes -
            Labels 10.2-ga json-10.2 10.2-rc json-10.2
            holyfoot Alexey Botchkov made changes -
            Fix Version/s 10.2.4 [ 22116 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 78573 ] MariaDB v4 [ 151282 ]

            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.