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

ANALYZE crashes when printing WHERE when no default db

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 10.1.4
    • Optimizer
    • None

    Description

      The following testcase crashes:

      create table t1(a int);
      insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
       
      select database();
      connect (con1,localhost,root,,*NO-ONE*);
      connection con1;
      select database();
      analyze format=json select * from test.t1 where t1.a<5;
      disconnect con1;
      connection default;

      Attachments

        Activity

          psergei Sergei Petrunia created issue -
          psergei Sergei Petrunia made changes -
          Field Original Value New Value
          Assignee Sergei Petrunia [ psergey ]
          psergei Sergei Petrunia made changes -
          Component/s Optimizer [ 10200 ]
          Fix Version/s 10.1.4 [ 18400 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 59948 ] MariaDB v3 [ 66386 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 66386 ] MariaDB v4 [ 148864 ]

          People

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