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

sys.create_synonym_db fails when a temporary table masks a base table

Details

    Description

      create database db;
      use db;
      create table t (b int);
      create temporary table t (a int);
       
      call sys.create_synonym_db('db','db_copy');
      

      10.6 7da351d8

      mysqltest: At line 6: query 'call sys.create_synonym_db('db','db_copy')' failed: ER_VIEW_SELECT_TMPTABLE (1352): View's SELECT refers to a temporary table 't'
      

      Attachments

        Issue Links

          Activity

            anel Anel Husakovic added a comment - - edited

            Hi wlad can you please review
            https://github.com/MariaDB/server/tree/bb-10.6-anel-MDEV-28342-create_synonym

            After this patch MDEV-28343 (10.9 preview branch) will be updated.

            anel Anel Husakovic added a comment - - edited Hi wlad can you please review https://github.com/MariaDB/server/tree/bb-10.6-anel-MDEV-28342-create_synonym After this patch MDEV-28343 (10.9 preview branch) will be updated.

            I'm fine with it.

            wlad Vladislav Vaintroub added a comment - I'm fine with it.

            Pushed with c1063a1bed0008c

            anel Anel Husakovic added a comment - Pushed with c1063a1bed0008c

            People

              anel Anel Husakovic
              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.