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

Referred database create stmt not written to context

    XMLWordPrintable

Details

    • Can result in unexpected behaviour
    • Q2/2026 Server Maintenance

    Description

      Bug found while testing MDEV-38701

      Replay fails because There is no create database m10; stmt in context

      case)
      create database m8;use m8;
      create database m10;
      create table m10.t1(a int);
      explain select * from m10.t1;

      context:
      ------------
      CREATE DATABASE IF NOT EXISTS m8;

      USE m8;

      CREATE TABLE `m10`.`t1` (
        `a` int(11) DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;   //Fails

      explain select * from m10.t1;  //Fails

      Attachments

        Issue Links

          Activity

            People

              bsrikanth Srikanth Bondalapati
              mariadb-pavithrapandith Pavithra Pandith
              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.