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

Dropping temporary table and actual table with same name

    XMLWordPrintable

Details

    Description

      This code works.

      create temporary table t1 (a int);
      create table t1 (b int);
      -- This drops the temporary table. Temporary tables hide the regular one with the same name.
      drop table t1;
      create temporary table t1 (a int);
      -- First table dropped should be the temporary table, then the second one should be the regular table.
      -- This currently fails with an error.
      drop table t1, t1;
      
      

      Make
      drop table t1, t1 succeed and also carry out correct privilege checks according to which table it's looking at (temporary vs non-temporary).

      Note, this should be fixed in the earliest release where it makes sense.

      Attachments

        Activity

          People

            cvicentiu Vicențiu Ciorbaru
            cvicentiu Vicențiu Ciorbaru
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.