<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="1002162">
  <date_last_updated>2012-05-21 06:24:37.735413+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/1002162</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~igorb-seattle</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.5</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/1002162/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/1002162/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/1002162</bug_web_link>
  <owner>Igor Babaev</owner>
  <assignee>Michael Widenius</assignee>
  <milestone_title>Maria 5.5</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>Temporary MERGE table with temporary underlying is broken by ALTER</title>
  <status>Confirmed</status>
  <importance>Medium</importance>
  <created>2012-05-21 06:23:56.707818+00:00</created>
  <description>
<![CDATA[The bug #57657 from bugs.mysql.com is reproducible in MariaDB 5.5

MariaDB [test]> create temporary table t1_temp(i int);
Query OK, 0 rows affected (0.02 sec)

MariaDB [test]> create temporary table tm_temp_temp (i int) engine=merge union=(t1_temp) insert_method=last;
Query OK, 0 rows affected (0.00 sec)

MariaDB [test]> alter table tm_temp_temp insert_method=first;
ERROR 1168 (HY000): Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
MariaDB [test]> check table tm_temp_temp;
+-------------------+-------+----------+-----------------------------------------------------------------------------------------------------+
| Table             | Op    | Msg_type | Msg_text                                                                                            |
+-------------------+-------+----------+-----------------------------------------------------------------------------------------------------+
| test.tm_temp_temp | check | Error    | Table 'test.t1_temp' is differently defined or of non-MyISAM type or doesn't exist                  |
| test.tm_temp_temp | check | Error    | Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist |
| test.tm_temp_temp | check | error    | Corrupt                                                                                             |
+-------------------+-------+----------+-----------------------------------------------------------------------------------------------------+
3 rows in set (0.00 sec)]]>  </description>
  <activities>
    <activity datechanged="2012-05-21T06:23:56.707818+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Igor Babaev</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-05-21T06:24:08.951013+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Confirmed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-21T06:24:14.193572+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[Medium]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-21T06:24:30.982295+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Michael Widenius (monty)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-21T06:24:37.059657+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.5]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Igor Babaev</person>
      <message></message>
    </activity>
  </activities>
</launchpad-bug>
