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

CREATE TEMPORARY TABLE name LIKE same_name

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5.38, 10.0.12
    • None
    • None

    Description

      MariaDB [test]> CREATE TABLE tab (c INT) ENGINE = InnoDB;
      Query OK, 0 rows affected (0.43 sec)
      MariaDB [test]> CREATE TEMPORARY TABLE tab LIKE tab;
      ERROR 1066 (42000): Not unique table/alias: 'tab'

      I suppose that this error should only appear if I omit the TEMPORARY keyword, or if a temporary table with that name already exists. In this case, the old table and the new table are distinct entities...

      Attachments

        Activity

          People

            Unassigned Unassigned
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.