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

Optimizer trace does not escape double quotes, produces invalid JSON

    XMLWordPrintable

Details

    Description

      SET optimizer_trace= 'enabled=on';
      SELECT LENGTH("a");
      SELECT json_valid(trace), trace FROM information_schema.optimizer_trace;
      

      10.4 f97f6955

      json_valid(trace)	trace
      0	{
        "steps": [
          {
            "join_preparation": {
              "select_id": 1,
              "steps": [
                {
                  "expanded_query": "select octet_length('a') AS `LENGTH("a")`"
                }
              ]
            }
          },
          {
            "join_optimization": {
              "select_id": 1,
              "steps": []
            }
          },
          {
            "join_execution": {
              "select_id": 1,
              "steps": []
            }
          }
        ]
      }
      

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.