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

Alter on temporary table causes ER_TABLE_EXISTS_ERROR note

    XMLWordPrintable

Details

    Description

      MDEV-12459 introduced a note upon creation of a temporary table which shadows an existing base table; it looks quite natural.
      However, this note is also produced upon ALTER of such a table. That is not natural, even though may be understandable from the technical point of view.

      create table t (a int);
      create temporary table t (b int);
      alter table t add c int;
       
      # Cleanup
      drop temporary table t;
      drop table t;
      

      preview-10.9-MDEV-20119-misc c906db30

      alter table t add c int;
      Warnings:
      Note	1050	Table 't' already exists
      

      Attachments

        Issue Links

          Activity

            People

              anel Anel Husakovic
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.